After "Save As", how to open in NotePad the saved text file

Hello,


Right after "Save As" (OK), I'd like VB to automatically open the saved text file in NotePad (to check it...).


Thank you

Andras


Comments

  • There's an API called SHellExecute that you can use. Or you can use the shell command.


    x = Shell("C:WindowsNotepad.exe MyTextFile.txt")


  • : There's an API called SHellExecute that you can use. Or you can use the shell command.


    : x = Shell("C:WindowsNotepad.exe MyTextFile.txt")





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories