M
Michele
I really don't know anything about programming... I am
trying to create code to open windows explorer from within
Word and then move to and ultimately delete a folder. So
far I have the following:
Public Sub delfolder()
Dim winFolder As String
winFolder = Environ("WINDIR")
Shell winFolder & "\explorer.exe", vbNormalFocus
SendKeys "Combined"
End Sub
The code opens Explorer as I wanted but every time it
types the "combined" into my Word document. Why is the
focus not staying on Windows Explorer? Please help!
trying to create code to open windows explorer from within
Word and then move to and ultimately delete a folder. So
far I have the following:
Public Sub delfolder()
Dim winFolder As String
winFolder = Environ("WINDIR")
Shell winFolder & "\explorer.exe", vbNormalFocus
SendKeys "Combined"
End Sub
The code opens Explorer as I wanted but every time it
types the "combined" into my Word document. Why is the
focus not staying on Windows Explorer? Please help!