LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2007 - Perplexing Undo VBA runtime error

I have a worksheet with Worksheet_Change and Worksheet_Calculate macros.
After a cell in the worksheet is changed, the code contained in the events
runs successfully.

However, when the change to the cell is undone using Excel's Undo command, a
1004 Runtime Error is generated when the code in the Calculate event tries to
change the value of a cell in a different sheet.

If a breakpoint is placed at the start of the Worksheet_Change event, and
the cell change is undone, the breakpoint kicks in, and using the Immediate
window to change the Value of any cells generates the same error. (The
interior color of the same cells can be changed however!) This problem does
not happen with the same workbook in Excel 2003.

Any responses gratefully received.
 
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 2007 Shell Command Runtime Error HELP KJ MAN[_2_] Excel Programming 0 September 21st 08 07:53 PM
New to Excel 2007 with a perplexing MACRO question Tangohammerli Excel Discussion (Misc queries) 2 February 22nd 08 02:36 AM
shape runtime error 438 excel 2007 wolmFromAustria Excel Programming 2 December 10th 06 02:32 PM
runtime error r6025 on Excel 2007 partch Excel Discussion (Misc queries) 1 December 7th 06 04:08 PM


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