Save As File Format

B

betany70

Hello-

We have an Excel 03 SPreasheet that has a Save as Macro included as below.
We would like to modify the macro to allow the file to be saved as an Excel
File and a pdf file (we have upgraded to 07). What file type would I
specifiy?

ChDir "C:\Sections\CurrentSections"
ActiveWorkbook.SaveAs Filename:="C:\Sections\CurrentSections" & _
Range("E1").Value & "-Section.xls", _
FileFormat:=xlExcel8, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False

ChDir "C:\Sections\CurrentSections"
ActiveWorkbook.SaveAs Filename:="C:Sections\CurrentSections" & _
Range("E1").Value & "-Section.pdf", _
FileFormat:=xlExcel8, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, CreateBackup:=False

Thanks!
 

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


Top