JFRobishow
Technical User
Hi everyone,
I have a small problem right now, I've a file list box on a file and I would like to be able to click on the name of the files and have them open in notepad, I have this :
Private Sub File1_Click()
Shell "Notepad.exe" & " " & File1.path, vbNormalFocus
End Sub
This is giving me an Access Denied error, while it's working fine for other file, I'm kind of lost as I don't know much about vb...any suggestions?
Thanks in advance for the reply,
I have a small problem right now, I've a file list box on a file and I would like to be able to click on the name of the files and have them open in notepad, I have this :
Private Sub File1_Click()
Shell "Notepad.exe" & " " & File1.path, vbNormalFocus
End Sub
This is giving me an Access Denied error, while it's working fine for other file, I'm kind of lost as I don't know much about vb...any suggestions?
Thanks in advance for the reply,