I am trying to open a file with notepad.
const strfilename = \"C:\\Users\\Desktop\\abc.txt\" set OFS = myOFSO.OpenTextFile(strfilename)
I
Below code will help you to open notepad from excel.
Dim fso As Object Dim sfile As String Set fso = CreateObject("shell.application") sfile = "C:\Users\Universal\Desktop\test.txt" fso.Open (sfile)