I need help!!! I want to export a certain file type to launch in Notepad not its original file.
Printable View
I need help!!! I want to export a certain file type to launch in Notepad not its original file.
I'm not sure exactly what you mean, hope this is what you wanted:
Shell ("notepad xxx")
Where xxx is the full path of the file.
I'm not sure either but if you want to im sure you can manipulate registry and replace the txt keys with your own format
NO I mean like opening a doc. file in notepad and not in wordpad
If it's in RichTextformat, you're goning to end up with a bunch of scribbles if you open it n ASCII text.
If not, you could do what kedaman said and change the registry or you could open the file, get the text and put it on the clipboard, Next, Shell Notepad and send the Paste command (Ctrl V) and the text will appear in Notepad!
It's not the best way, but it works.
Also, You can load the file into a richtextbox and copy the richtextbox.text and save it to a tempfile that you open with notepad
Call Shell("Notepad.exe "C:\Autoexec.bat", vbNormalFocus)