Save 2003 as 2007

kclong

Board Regular
Joined
Nov 22, 2006
Messages
80
How do I write a macro that will save a 2003 version of a file (.xls) as a 2007 version (.xlsx)?
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Perhaps like this

Code:
Sub test()
With ActiveWorkbook
    .SaveAs Filename:= .FullName & "x", FileFormat:=51
End With
End Sub
 
Upvote 0
I could be wrong but I don't think 2003 has that functionality. 2007 can read a 2003 file though.

Colin
 
Upvote 0
I have 2007 version of excel, and I know that it can read 2003 files. I want to actually open a 2003 file and re-save it as a 2007 version with a macro.

The code below simply makes it say .xlsx but it doesn't actually save it as a 2007 file.

Any other thoughts? Thanks.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top