hello
I no know if this way is right to open files from listbox and desptite it gives me error method or data member not found in this word ".WebBrowser1" and I 'm sure i select form referenc in tool microsoft internet controls
Private Sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
Dim wPath As String, wName As String
wPath = "C:\Users\OSE\Desktop\11\"
If Right(wPath, 1) <> "\" Then wPath = wPath & "\"
wName = ListBox1.List(ListBox1.ListIndex)
If LCase(Right(wName, 4)) <> ".pdf" Then wName = wName & ".pdf"
UserForm1.WebBrowser1.Navigate wPath & wName
End Sub
so if anybody has idea or alternitve code please provide me