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 .
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.