View Single Post
 
Old 12-20-2024, 06:19 AM
hungt hungt is offline Windows XP Office 2010
Banned
 
Join Date: Jan 2020
Posts: 2
hungt is on a distinguished road
Default

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
Reply With Quote