RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 810
- Office Version
- 365
- Platform
- Windows
Hi all, have a box with a button next to it, the idea is, user clicks the button which opens the directory where the Mailing Lists are stored, then the user selects the Mailing List and it stores the path + filename as "facml"
I then want the box to fill in *just the file name*
Here's my code below
What's happening right now is it's giving me the whole path + filename, I just need the filename to go in the box, thanks!
I then want the box to fill in *just the file name*
Here's my code below
Code:
ChDir "\\chw-dc03\company\Sales\Faculty Documents\2019 Mailing Lists"facml = Application.GetOpenFilename(Title:="Please choose a Faculty Mailing List")
If facml = False Then
Exit Sub
End If
Application.AskToUpdateLinks = True
Range("D4").Value = facml
What's happening right now is it's giving me the whole path + filename, I just need the filename to go in the box, thanks!