M
Marceepoo
When I save a file in MS Word, I right click on a file, and use the "Send to"
menu to send the file to a vbscript that opens Windows Explorer to the folder
where the file is located. The script is below.
I have made a vba macro that stores the fulname (path + filename) to a
strVar and pastes the strVar into the Windows clipboard.
I'd like to create a vba macro that would either:
1. Perform something in Vba like the following part of the vbscript
below (which opens Windows explorer to the path stored
in "txtFolderToOpen"):
Set SH = WScript.CreateObject("Shell.Application")
txtFolderToOpen = s
SH.Explore txtFolderToOpen
Set SH = Nothing
or
2. Call a vbscript (that I'll compose, once I know how to get vba to call
it).
Thanks, marceepoo
menu to send the file to a vbscript that opens Windows Explorer to the folder
where the file is located. The script is below.
I have made a vba macro that stores the fulname (path + filename) to a
strVar and pastes the strVar into the Windows clipboard.
I'd like to create a vba macro that would either:
1. Perform something in Vba like the following part of the vbscript
below (which opens Windows explorer to the path stored
in "txtFolderToOpen"):
Set SH = WScript.CreateObject("Shell.Application")
txtFolderToOpen = s
SH.Explore txtFolderToOpen
Set SH = Nothing
or
2. Call a vbscript (that I'll compose, once I know how to get vba to call
it).
Thanks, marceepoo