
Shell with filename as variable
Shell ("c:\windows\Notepad.exe " & filename)
Don't forget to include the blank space after the .exe.
Lee Weiner
weiner AT fuse DOT net
Quote:
>I would like to use the shell command to open a certain file in notepad. I
>have figured out how to open notepad and a file using:
>Shell ("c:\windows\Notepad.exe d:\foo.txt")
>but the problem is that the filename may change and is specified in a variable
>called "filename". I need to have notepad open with whatever string is
>contained in the "filename" variable.
>Thanks,
>Jeff