Sub runExp()
'
Dim path1 As String
Dim fs As Object
Set fs = CreateObject("Scripting.FileSystemObject")
path1 = "C:\" & ActiveCell.Value
If fs.folderexists(path1) then
temp = Shell("EXPLORER.EXE /e,/root," & path1, vbNormalFocus)
End If
End Sub
Sub Tester()
Dim PID As Double
Dim strRootPath As String
Const strExpExe = "explorer.exe"
Const strArg = " /e,/root, "
'// Change rootpath here
strRootPath = "C:\"
PID = Shell(strExpExe & strArg & strRootPath, 3)
End Sub
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.