Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default 2003 Macro in a 2007 World

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 461
Default 2003 Macro in a 2007 World

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
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
2007 / 2003 Pivottable Macro jxbeeman Excel Discussion (Misc queries) 0 July 21st 09 08:51 PM
2003 file can't open macro in 2007 RadiantDebby Excel Discussion (Misc queries) 3 February 17th 09 06:56 AM
2003 to 2007 macro problem Russ Morgan Excel Worksheet Functions 3 January 2nd 09 07:26 PM
macro between 2003 and 2007 Debbie Horner Excel Discussion (Misc queries) 1 October 15th 08 03:16 PM
Macro 2003 vs 2007 Ron Excel Worksheet Functions 1 September 29th 08 05:40 AM


All times are GMT +1. The time now is 11:47 PM.

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"