ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   changing directories...with vba (https://www.excelbanter.com/excel-programming/300542-changing-directories-vba.html)

mjschukas

changing directories...with vba
 
changing directories...with vb

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

thank you.

Harald Staff

changing directories...with vba
 

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

HTH. Best wishes Harald

"mjschukas" skrev i melding
...
changing directories...with vba

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

save as)...

thank you.




mjschukas

changing directories...with vba
 
thank you...! works great..

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

thanks!

Harald Staff

changing directories...with vba
 
Dialogs are for human interaction. What is it you want done ?

Best wishes Harald


"mjschukas" skrev i melding
...
thank you...! works great...

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

Type" comboboxes...

thanks!





All times are GMT +1. The time now is 10:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com