Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Excel default save folder!

Status
Not open for further replies.

Magol

Programmer
Mar 3, 2002
1
SE
Hi.I try to open a blank Excelbook from a form in Access with VB-code. When the user click "save as" in Excel I would like the default folder in Excel to change to a specified catalog. When I use Word, this works perfect

This is for Word:

y = Customer
x = ProjectName


Set mobjWordApp = New Word.Application
With mobjWordApp
.Visible = True
.WindowState = wdWindowStateMaximize
.Documents.Add
.Options.DefaultFilePath(wdDocumentsPath) = "t:\proj\" & y & "\" & x 'Words default path
End With

Can some one help me with this?

Regards
Magnus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top