Hi,
I'd like to use VBA to allow a user to choose a folder to set as the new current directory. Is there a way to pop open a dialog box like the GetOpenFilename does, but choose a folder rather than a file?
Here's my start:
Dim Response As VbMsgBoxResult
Response = MsgBox("Your current directory is " & vbLf & _
CurDir & vbLf & _
"Would you like to change it?", vbYesNo, "Current Folder Directory")
If Response = vbYes Then
------------------------
End If
Thanks!
I'd like to use VBA to allow a user to choose a folder to set as the new current directory. Is there a way to pop open a dialog box like the GetOpenFilename does, but choose a folder rather than a file?
Here's my start:
Dim Response As VbMsgBoxResult
Response = MsgBox("Your current directory is " & vbLf & _
CurDir & vbLf & _
"Would you like to change it?", vbYesNo, "Current Folder Directory")
If Response = vbYes Then
------------------------
End If
Thanks!