I have a *.txt file listed in a List Box. What is the simplest method to open it in Notepad. Let's say double click on that file in a list box will opens this file.
Thank you.
Printable View
I have a *.txt file listed in a List Box. What is the simplest method to open it in Notepad. Let's say double click on that file in a list box will opens this file.
Thank you.
Try this:
Dim Z As Long
Dim X
X = "Test.txt"
Z = Shell("c:\windows\notepad.exe " & X, vbNormalFocus)
- Dj4
Thanks a lot.