Hello Everyone,
Thanks for help up front.
I have the programming done that allows me to click the macro button and select a text file to import. It all works wonderfully. However, I want to ask a question about programming the directory that opens in the dialogue box when you click the button.
This template will potentially be used by other people, so when I point the command to C:\Users\"Clarkit's"\Documents (the user of the computer, and documents, location the text file will always be in), will excel automatically use the current user of the template, or will it come up with and error and say "file directory doesnt exist"?
My question is, is there a way to define the "current user", or the account that the template is being used under?
So instead of this:
ChDir "C:\Users\Clarkit\Documents"
fName = Application.GetOpenFilename()
Excel will automatically fill in the blank with the correct user?
ChDir "C:\Users\ _______\Documents"
fName = Application.GetOpenFilename()
This is a tricky one!
Thanks!
Bookmarks