I am trying to open a file with notepad.
const strfilename = "C:\Users\Desktop\abc.txt"
set OFS = myOFSO.OpenTextFile(strfilename)
It is displaying
error code 424
I am trying to open a file with notepad.
const strfilename = "C:\Users\Desktop\abc.txt"
set OFS = myOFSO.OpenTextFile(strfilename)
It is displaying
error code 424
If you want to create a new text-file and want to write into it, you could use this approach:
Below code will help you to open notepad from excel.
Could just call a shell command to execute notepad.exe with the file path.
Try this approach
Open any file with the default program for the filetype: (with a single line of code)
If you want to use this method with a filetype that isn't yet associated with an application:
default