J
Joe
Hi all -
New to vba and could use a little help.
I'm prompting the user to select a folder using:
With Dialogs(wdDialogCopyFile)
If .Show <> 0 Then
myFolder = .directory
Later on I'd like to be able to display only the name of the last folder in the path. If I use msgbox myFolder it displays the entire path. Can anyone suggest a method for accomplishing this.
Thanks in advance.
Joe
New to vba and could use a little help.
I'm prompting the user to select a folder using:
With Dialogs(wdDialogCopyFile)
If .Show <> 0 Then
myFolder = .directory
Later on I'd like to be able to display only the name of the last folder in the path. If I use msgbox myFolder it displays the entire path. Can anyone suggest a method for accomplishing this.
Thanks in advance.
Joe