VBA to Open an excel file in notepad [Solved/Closed]

Report
-
 Blocked Profile -
Hello,

Can someone tell me the vba code to open an .xls or .csv file in notepad?

thanks

PM

1 reply


Dear Sir,

Below is an example which will facilitate your task:

RetVal = Shell("C:\WINDOWS\notepad.exe C:\myfile.txt", 1)

Thanks in advance.
10
Thank you

A few words of thanks would be greatly appreciated. Add comment

CCM 2942 users have said thank you to us this month