cheaney
New member
I am trying to open a specific file in Wordpad (from within my program) using the shell function but I dont know how to pass it the filename.
This is what I have now:
Dim ReturnValue
On Error GoTo err_Calc
ReturnValue = Shell(
"C:\Program Files\WindowsNT\Accessories\wordpad.exe", 1)
This code will open Wordpad but how do I get it to open my wordpad file?
Thanks in advance to anyone with some help.
cheaney
This is what I have now:
Dim ReturnValue
On Error GoTo err_Calc
ReturnValue = Shell(
"C:\Program Files\WindowsNT\Accessories\wordpad.exe", 1)
This code will open Wordpad but how do I get it to open my wordpad file?
Thanks in advance to anyone with some help.
cheaney