Save As

  • Thread starter Thread starter Orf Bartrop
  • Start date Start date
O

Orf Bartrop

I am a newby at programming Excel.
How do you program to bring up the "Save As" box?

Orf Bartrop
 
This should help:
Code:
Sub sv_as()
fileSaveName = Application.GetSaveAsFilename( _
fileFilter:="Excel File (*.xls), *.xls")
ActiveWorkbook.saveas (fileSaveName)
End Sub
 
Thank you, works well. However, at present it selects My Documents
folder and I would like it to select a particulat folder. How do I
nominate that folder rather than have to select it from the dialog box?

Orf
 
Use

chdrive "d:\Development"
chdir "d:\Development"

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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

Similar Threads

Automatic Dates 10
Undo button 2
Nested Ifs VBA, How to 1
Repeat Entries 3
Exit button. 1
Hide a text box 6
List Box Size 12
VBA Question (Again) 2

Back
Top