I am using VBA with Word 2003. I am trying to use the wdDialogFileFind dialog to return a string indicating a folder name and path. I'm using the .Display method rather than the .Show method because I only want to return a string, not have the dialog actually do anything.
The problem is, wdDialogFileFind is really not the best tool for the job for the following reasons:
1. The wdDialogFileFind dialog shows folders and files. I want it to only show folders that the user can pick from.
2. I want the "File name:" text box to read "Folder name:".
3. I don't want the "Files of type:" combo box to display.
Furthermore, Word uses the perfect dialog for what I'm trying to do. If I choose Tools|Options|File Locations|Modify, it gives me the Modify Location dialog, which is exactly what I want. I can bring up the File Locations dialog (wdDialogToolsOptionsFileLocations) programmatically, but I can't seem to find the Modify Location dialog. I'm not even sure if it exists as a built-in dialog.
OK, long intro; here's my question:
1. Does the Modify Location dialog exist as a built-in dialog?
2. Can the wdDialogFileFind or any other dialog be modified to behave like the Modify Location dialog? Microsoft's documentation of the "Built-in Dialog Box Argument Lists" is so scant as to be nearly useless: it lists the arguments for each dialog, but gives no indication how each argument is used, what its data type is, what the built-in constants are, etc.
Thanks in advance for anyone who can help me with this.
The problem is, wdDialogFileFind is really not the best tool for the job for the following reasons:
1. The wdDialogFileFind dialog shows folders and files. I want it to only show folders that the user can pick from.
2. I want the "File name:" text box to read "Folder name:".
3. I don't want the "Files of type:" combo box to display.
Furthermore, Word uses the perfect dialog for what I'm trying to do. If I choose Tools|Options|File Locations|Modify, it gives me the Modify Location dialog, which is exactly what I want. I can bring up the File Locations dialog (wdDialogToolsOptionsFileLocations) programmatically, but I can't seem to find the Modify Location dialog. I'm not even sure if it exists as a built-in dialog.
OK, long intro; here's my question:
1. Does the Modify Location dialog exist as a built-in dialog?
2. Can the wdDialogFileFind or any other dialog be modified to behave like the Modify Location dialog? Microsoft's documentation of the "Built-in Dialog Box Argument Lists" is so scant as to be nearly useless: it lists the arguments for each dialog, but gives no indication how each argument is used, what its data type is, what the built-in constants are, etc.
Thanks in advance for anyone who can help me with this.