PC Review


Reply
Thread Tools Rate Thread

2003 Macro in a 2007 World

 
 
hnyb1
Guest
Posts: n/a
 
      19th Nov 2009
My company, in its infinite wisdom, has decided to upgrade some users to
Microsoft 2007 while leaving the rest of us in 2003. I set up a spreadsheet
with macro in Excel 2003. A user has updated data in the spreadsheet using
Excel 2007. He has then sent the spreadsheet to another user who is
attempting to run the macro in Excel 2003. Macro bombs out with the message
"Run-Time error '57121': Application-defined or object-defined error". Code
is as follows:

Sub Spell()
'
' Spell Macro
' Macro to allow spell checking of password protected Excel Forms
'
' Keyboard Shortcut: Ctrl+s
'
ActiveSheet.Unprotect Password:="password"
Cells.CheckSpelling SpellLang:=1033
ActiveSheet.Protect Password:="password"
Range("A1:I1").Select
End Sub

Any help would be greatly appreciated.

Thanks,
Holly
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      20th Nov 2009
The code works for me in 2003. Is the password correct? Is the active
sheet a chart?

- Jon
-------
Jon Peltier
Peltier Technical Services, Inc.
http://peltiertech.com/



hnyb1 wrote:
> My company, in its infinite wisdom, has decided to upgrade some users to
> Microsoft 2007 while leaving the rest of us in 2003. I set up a spreadsheet
> with macro in Excel 2003. A user has updated data in the spreadsheet using
> Excel 2007. He has then sent the spreadsheet to another user who is
> attempting to run the macro in Excel 2003. Macro bombs out with the message
> "Run-Time error '57121': Application-defined or object-defined error". Code
> is as follows:
>
> Sub Spell()
> '
> ' Spell Macro
> ' Macro to allow spell checking of password protected Excel Forms
> '
> ' Keyboard Shortcut: Ctrl+s
> '
> ActiveSheet.Unprotect Password:="password"
> Cells.CheckSpelling SpellLang:=1033
> ActiveSheet.Protect Password:="password"
> Range("A1:I1").Select
> End Sub
>
> Any help would be greatly appreciated.
>
> Thanks,
> Holly

 
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
Macro from 2003 to 2007 RogerS Microsoft Excel Misc 0 3rd Feb 2010 03:54 PM
Macro 2003 vs 2007 Lucson Microsoft Excel Programming 6 28th Oct 2008 05:36 PM
Macro 2003 vs 2007 Ron Microsoft Excel Worksheet Functions 1 29th Sep 2008 05:40 AM
WORLD TOURSIM WORLD TRAVEL WORLD PACKAGE TAJMAHAL TEMPLE Microsoft Dot NET 0 7th Apr 2008 04:32 PM
Outlook 2003-2007 with Exchange 2007 simple macro creation help? markm75 Microsoft Outlook Discussion 2 29th Mar 2008 06:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:38 PM.