opening a filedialog window

  • Thread starter Thread starter Zygoid
  • Start date Start date
Z

Zygoid

Hi All,

i am trying to get a commandbutton_click to open a filedialog box for
c:\greg\bids

Windows.Application.FileDialog.Show "c:\greg\bids\"

maybe a filedialog box is not what i think it is.
address c:\greg\bids
and should show all the files in that folder?

Thanks in advance for any help.
 
Try


Dim fd As FileDialog
Set fd = Application.FileDialog(msoFileDialogFilePicker)
fd.InitialFileName = "c:\greg\bids\"
fd.Show

you will need to tell what it must do with the selected file thoug
 
ahh, works great! Thanks.

just when i think i've learned enough to handle something easy lik
this I end up pulling out a few strands of hair. :-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top