Shell open Notepad and write text

V

vqthomf

Hi is it possible to open Notepad and write text and let the user print or
/and save the file, I tried using the SendKeys strText, True after opening
Notepad but this wont work. Any help would much appreciated.
Charles
 
J

joel

It seems you are having problems puting text into Notepad. Why no
write the data as a text file then open the text file with note pad an
print.


ID = shell("C:\windows\notepad.exe c:\myfile.txt"
 
D

Dave Peterson

If your code knows what to write, you could create/append the text file in code.

Look at "Print # Statement" in VBA's help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top