Name of current OpenDirectory

  • Thread starter Steven M (remove wax to reply)
  • Start date
S

Steven M (remove wax to reply)

Is there any way in VBA (Office 2000) to learn the name of the current
directory/folder?

I know how to change the current directory using the command
ChangeFileOpenDirectory

And I know how to see the current default folder, by examining

temp = Options.DefaultFilePath(wdDocumentsPath)

But neither one does what I want.

Say that my default folder is "C:\My Documents", but I have changed
the current directory from the default by "manually" opening a file in
a directory other than the default.

Can a macro obtain and do something with the name of this new folder?
 
P

Perry

Try CurDir() function

? CurDir
C:\Documents and Settings\Perry\My Documents

Krrds,
Perry
 
Top