Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

shell explorer.exe

Status
Not open for further replies.

misubud

IS-IT--Management
May 29, 2002
25
0
0
NZ
Hope this will be a quick fix for someone.
I am able to shell to explorer.exe, but i need it to open a specific directory.
ie on button click, open explorer.exe and open the folder of the current project.(ActiveWorkbook.path)

any assistance appreciated.
 
Hi

Just pass the path as parameter:
Shell "explorer " & ActiveWorkbook.Path

The code above shows the explorer with the folder view. If you want to see the 'real' explorer view (with the tree), use the '/e' parameter:
Shell "explorer /e, " & ActiveWorkbook.Path

HTH
Philipp
 
thanks!

worked a treat!

just have to remember it for next time :p
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top