Change hardcoded file path to user prompted in VBA?
问题 Right now, I have a VBA macro for Word which parses a document for a certain font and outputs all font of the selected type to a text file. The hard coded line which I open the text file is something like this: Open "C:\Documents and Settings\Output.txt" For Output As #n Can I change this so the user is prompted to enter the file path at this point in the macro? Something like: Open (PROMPTS USER FOR FILE PATH HERE) For Output As #n Sorry if this seems trivial. I am new to VBA coding. 回答1: