Open and dispaly test file

P

PC

Hi

Could somebody point me to some code that I could use to open a text file in
notepad and display the contents. Basically I'm exporting data from some
table to a text file and would like for the use to see the results of the
export in the text file

Thanks

...pc
 
W

Wayne Morgan

Shell "Notepad.exe <path>\Mytextfile.txt", vbNormalFocus

This will work on an NT computer, because notepad is in the search path. On
a Win9x computer, you may need to specify the path to notepad.
 
P

PC

Thanks Wayne. That worked a treat
Wayne Morgan said:
Shell "Notepad.exe <path>\Mytextfile.txt", vbNormalFocus

This will work on an NT computer, because notepad is in the search path. On
a Win9x computer, you may need to specify the path to notepad.
 

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