CommonDialog Problem

  • Thread starter Thread starter Nny
  • Start date Start date
N

Nny

Every time I use the commondialog control, it seems to
remember the last path and filename is opened. I need to
clear this information and have it use a different initial
directory every time I open it, but I cannot. No matter
what I set the .initdir property to, it displays the
directory that the common dialog last worked with. Is
there any way to "refresh" this dialog through code?
 
Most of us use the built-in methods to get file names:

Application.GetSaveAsFilename
Application.GetOpenFilename

Any reason not to? If so, post your code so we can see the problem.

--
Jim Rech
Excel MVP
| Every time I use the commondialog control, it seems to
| remember the last path and filename is opened. I need to
| clear this information and have it use a different initial
| directory every time I open it, but I cannot. No matter
| what I set the .initdir property to, it displays the
| directory that the common dialog last worked with. Is
| there any way to "refresh" this dialog through code?
 
Back
Top