LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Save As File Format

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!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save word file in PDF format Radio Kashmir Srinagar Charts and Charting in Excel 0 April 4th 09 08:28 AM
Save Excel File in Other Format Shamir Excel Discussion (Misc queries) 0 February 8th 07 04:53 AM
Save excel file as another format file ExcelReport Excel Programming 5 July 12th 05 02:01 PM
VBA to Save a file to a different format but keep original groutch Excel Programming 4 December 2nd 04 10:48 PM
Save .txt file as .xls format - HOW?? m4nd4li4[_5_] Excel Programming 7 July 22nd 04 03:03 AM


All times are GMT +1. The time now is 06:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"