Getting a File's name and Path 
Author Message
 Getting a File's name and Path

Hi Everett

MsgBox Options.DefaultFilePath(wdCurrentFolderPath) & "\" & dlg.Name

But wdDialogFileOpen gives an error if the user selects more than one file -
for a workaround see:



| I can use:
| Set dlg = Dialogs(wdDialogFileOpen)
|     dlg.Display
|     MsgBox dlg.Name
| to get a file's name without actually opening it, but how
| do I return a user-selected file's full name, including
| its path (without opening it)?
| Thanks-
| Everett

Wed, 30 Jun 2004 16:25:25 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Getting a File's Dos Name and Path

2. Getting DOS 8.3 path from Windows long file name

3. Getting the path or file name of running application

4. Getting the path to a file's parent application out of the registry

5. Help, I'm getting Path/File Error

6. Getting short file name from long file name:

7. Getting the user's logon name and computer name

8. Can't Get full File name for Long file names

9. Getting UNC Network Path Name

10. Getting Project Name and Path in code

11. Getting full path name

12. Getting Short Path Names from Long


Powered by phpBB® Forum Software