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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to call windows explorer from a macro in excel

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm doing a macro in excel 2000, and I'd been looking how to call windows explorer with a specified route, but i couldn't find it, if someone can help, i will apreciatte .

Thanks.
 
cesar_soto -

What I have done is as follows;
'
Sub RunExplorer()
Dim RetVal As Double
RetVal = Shell("C:\WINDOWS\EXPLORER.EXE /n,/e,C:\", 1)
End Sub

I am currently running Excel97. You would have to find out where your EXPLORER.EXE program is on your hard drive and then change your path for the one I have coded above. It should work. [thumbsup2]
 
Thanks for the tip, that really helps me, but i wonder if you know a way to call a specific direction after opened windows explorer:

Sample:
I want to see the folder: \\server\tecnology\new
through Macros ???

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top