Thread
:
Display a PDF in MS Webbrowser control when PDF is selected (clicked) from a ListBox
View Single Post
12-20-2024, 06:19 AM
hungt
Windows XP
Office 2010
Banned
Join Date: Jan 2020
Posts: 2
Private Sub CommandButton1_Click()
Dim filename As String
' filename = "d:\myPDF.pdf" ' file path
filename = ListBox1.List(ListBox1.ListIndex) ' selected item in ListBox1
WebBrowser1.Navigate filename
End Sub
hungt
View Public Profile
Find all posts by hungt