changing directories...with vba

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

changing directories...with vb

i would like to change the default directory (e.g., for use with the file save as)..

thank you.
 
Sub test()
Dim Mydir As String
Mydir = "C:\Temp"
ChDrive Mydir
ChDir Mydir
Application.Dialogs(xlDialogSaveWorkbook).Show
End Sub

HTH. Best wishes Harald
 
thank you...! works great..

and now, how can i control the: "Save In", "File Name", and "Save As Type" comboboxes..

thanks!
 
Dialogs are for human interaction. What is it you want done ?

Best wishes Harald
 

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