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 Excel 2007

Hi,

I have a spreadsheet with a macro that I set up in Excel 2003. This
spreadsheet was then sent to a user who has Microsoft 2007. He opened the
macro added information and then sent to another user who has Microsoft 2003.
When that user opened the file and attempted to run the macro it bombed out
with the message "Run Time Failure '32809': 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

I am at a complete loss and any help would be greatly appreciated
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default 2003 Macro in Excel 2007

Did the user save the original 2003 workbook as a 2007 workbook before
second user opened and ran in 2003?

I cannot replicate the problem...........won't bomb out no matter which
version I use or save as..........2003 or 2007.

Does User 2 have the compatiblity pack installed?

I have so not having the pack installed may make a difference but cannot
test without uninstalling.

Download and install the Compatibility Pack so's you can open 2007 files in
2003.

http://support.microsoft.com/kb/923505

Just note that 2007 files opened in 2003 will have the columns and rows
limits of 2003.


Gord Dibben MS Excel MVP



On Thu, 19 Nov 2009 10:50:01 -0800, hnyb1
wrote:

Hi,

I have a spreadsheet with a macro that I set up in Excel 2003. This
spreadsheet was then sent to a user who has Microsoft 2007. He opened the
macro added information and then sent to another user who has Microsoft 2003.
When that user opened the file and attempted to run the macro it bombed out
with the message "Run Time Failure '32809': 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

I am at a complete loss and any help would be greatly appreciated


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
Excel 2003 Macro taking long time in Excel 2007 Satish Excel Discussion (Misc queries) 3 November 3rd 09 04:58 PM
Run excel 2007 from Access 2003 Runapp macro Henning Leo Excel Discussion (Misc queries) 0 November 4th 08 09:55 AM
macro between 2003 and 2007 Debbie Horner Excel Discussion (Misc queries) 1 October 15th 08 03:16 PM
Macro for Pivot in MS Excel 2003 vs 2007 MichaelR Excel Discussion (Misc queries) 1 July 25th 08 01:02 AM
Excel 2007 Macro Help (Excel 2003 not working in 2007) Pman Excel Discussion (Misc queries) 4 May 29th 08 06:29 PM


All times are GMT +1. The time now is 05:58 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"