PC Review


Reply
Thread Tools Rate Thread

2007 Excel vs. 2003

 
 
Jenny B.
Guest
Posts: n/a
 
      3rd Mar 2010
Good Afternoon,

I'm trying to switch a spreadsheet with Programming/Macros from Office 2003
to 2007 . I'm having some compatibility issues and I'm hoping someone can
help.

In Excel 2003, if you had Text Fields or Shapes and were sending to a new
workbook, these were automatically ported over (meaning you'd have to program
in a logic if you didn't want them to show up the new worksheet). I'm hoping
to continue that working in Office 2007 but that doesn't appear to be the
case. Since I have so many Text Fields and shapes I'm carrying over to the
unformatted worksheet, I'm hoping there is a solution (vs. referencing all
fields) to have it carry these over automatically.

I'm writing from an existing workbook to a new sheet and below is the code.
I have to keep the doc in XLS form even though I'm working in 2007 Excel
(some users are still on 2003). When use the routine below from Excel 2007,
it will not bring the fields over and half of the page appears blank since
Excel 2003 automatically brings them over.

Any thoughts on a quick fix?

Thank you in advance - Jenny B.


Sub Finalstop()

Dim myPath As String
Dim nRng As Range
Dim fName As String
Set nRng = Range("F64")

ActiveSheet.Copy

myPath = "I:\Document Management\Print management\Operations\B55
Docs\B55 Testing Checklist\"
fName = nRng.Value & ".xls"

ActiveWorkbook.SaveAs Filename:= _
myPath & fName, FileFormat:= _
xlNormal, Password:="", _
WriteResPassword:="", _
ReadOnlyRecommended:=False, _
CreateBackup:=False
ActiveWorkbook.Close
ActiveSheet.Visible = False

End Sub
 
Reply With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      4th Mar 2010
If you're running in both Excel 2007 and 2003 and need to have different code
for each, do something like this

If Val(Application.Version) >= 12 then
'Excel 2007 code
else
'Excel 2003 code
end if
--
HTH,

Barb Reinhardt



"Jenny B." wrote:

> Good Afternoon,
>
> I'm trying to switch a spreadsheet with Programming/Macros from Office 2003
> to 2007 . I'm having some compatibility issues and I'm hoping someone can
> help.
>
> In Excel 2003, if you had Text Fields or Shapes and were sending to a new
> workbook, these were automatically ported over (meaning you'd have to program
> in a logic if you didn't want them to show up the new worksheet). I'm hoping
> to continue that working in Office 2007 but that doesn't appear to be the
> case. Since I have so many Text Fields and shapes I'm carrying over to the
> unformatted worksheet, I'm hoping there is a solution (vs. referencing all
> fields) to have it carry these over automatically.
>
> I'm writing from an existing workbook to a new sheet and below is the code.
> I have to keep the doc in XLS form even though I'm working in 2007 Excel
> (some users are still on 2003). When use the routine below from Excel 2007,
> it will not bring the fields over and half of the page appears blank since
> Excel 2003 automatically brings them over.
>
> Any thoughts on a quick fix?
>
> Thank you in advance - Jenny B.
>
>
> Sub Finalstop()
>
> Dim myPath As String
> Dim nRng As Range
> Dim fName As String
> Set nRng = Range("F64")
>
> ActiveSheet.Copy
>
> myPath = "I:\Document Management\Print management\Operations\B55
> Docs\B55 Testing Checklist\"
> fName = nRng.Value & ".xls"
>
> ActiveWorkbook.SaveAs Filename:= _
> myPath & fName, FileFormat:= _
> xlNormal, Password:="", _
> WriteResPassword:="", _
> ReadOnlyRecommended:=False, _
> CreateBackup:=False
> ActiveWorkbook.Close
> ActiveSheet.Visible = False
>
> End Sub

 
Reply With Quote
 
Jenny B.
Guest
Posts: n/a
 
      4th Mar 2010
Hi Barb,

Thank you so very much. I will just change up the code to the Else
Statement you provided to accommodate both versions. I was just hoping there
would be an easier way without bogging it down with more code, but I should
have known there would be more differences between the versions than I
originally thought.

Thank you for your time and solution – Jenny B.


"Barb Reinhardt" wrote:

> If you're running in both Excel 2007 and 2003 and need to have different code
> for each, do something like this
>
> If Val(Application.Version) >= 12 then
> 'Excel 2007 code
> else
> 'Excel 2003 code
> end if
> --
> HTH,
>
> Barb Reinhardt
>
>
>
> "Jenny B." wrote:
>
> > Good Afternoon,
> >
> > I'm trying to switch a spreadsheet with Programming/Macros from Office 2003
> > to 2007 . I'm having some compatibility issues and I'm hoping someone can
> > help.
> >
> > In Excel 2003, if you had Text Fields or Shapes and were sending to a new
> > workbook, these were automatically ported over (meaning you'd have to program
> > in a logic if you didn't want them to show up the new worksheet). I'm hoping
> > to continue that working in Office 2007 but that doesn't appear to be the
> > case. Since I have so many Text Fields and shapes I'm carrying over to the
> > unformatted worksheet, I'm hoping there is a solution (vs. referencing all
> > fields) to have it carry these over automatically.
> >
> > I'm writing from an existing workbook to a new sheet and below is the code.
> > I have to keep the doc in XLS form even though I'm working in 2007 Excel
> > (some users are still on 2003). When use the routine below from Excel 2007,
> > it will not bring the fields over and half of the page appears blank since
> > Excel 2003 automatically brings them over.
> >
> > Any thoughts on a quick fix?
> >
> > Thank you in advance - Jenny B.
> >
> >
> > Sub Finalstop()
> >
> > Dim myPath As String
> > Dim nRng As Range
> > Dim fName As String
> > Set nRng = Range("F64")
> >
> > ActiveSheet.Copy
> >
> > myPath = "I:\Document Management\Print management\Operations\B55
> > Docs\B55 Testing Checklist\"
> > fName = nRng.Value & ".xls"
> >
> > ActiveWorkbook.SaveAs Filename:= _
> > myPath & fName, FileFormat:= _
> > xlNormal, Password:="", _
> > WriteResPassword:="", _
> > ReadOnlyRecommended:=False, _
> > CreateBackup:=False
> > ActiveWorkbook.Close
> > ActiveSheet.Visible = False
> >
> > End Sub

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 versus Excel 2003 & Excel 97-2003 fully compatible Bumpersnesty Microsoft Excel Worksheet Functions 0 26th Apr 2010 09:44 PM
Excel 2003 help doesn't work. I got both Excel 2003 and 2007 insta Kenneth Andersen Microsoft Excel Misc 0 16th Feb 2010 10:44 AM
Can't open Excel 2007 files saved as 2003 in Excel 2003 Laura Microsoft Excel Crashes 1 13th Nov 2008 06:44 PM
Excel 2007 crashed after saving excel 2003 file into 2003 format kpy Microsoft Excel Crashes 0 17th Jun 2008 08:53 AM
Excel 2007 Macro Help (Excel 2003 not working in 2007) Pman Microsoft Excel Misc 4 29th May 2008 06:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:08 PM.