Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default UNDO become impossible after modifying SheeChange handler

Hi all,
I'm developing a c# excel addin and in order to make it work I have added a
new handler for the SheetChange event.
This handler modifies some global (addin scope) variables in order to
determine if some row/columns have been deleted and uses the UsedRange
attribute.
After that it become impossible to UNDO the modification.

Could anyone help finding out the reason and fixing it?

Thanks a lot for the help,

faffo1980

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default UNDO become impossible after modifying SheeChange handler

This is not surprising. I think it's actually designed this way. I have
seen some code somewhere that allows for undo when an event is fired, but I'm
not sure where to find it.
--
HTH,

Barb Reinhardt



"faffo1980" wrote:

Hi all,
I'm developing a c# excel addin and in order to make it work I have added a
new handler for the SheetChange event.
This handler modifies some global (addin scope) variables in order to
determine if some row/columns have been deleted and uses the UsedRange
attribute.
After that it become impossible to UNDO the modification.

Could anyone help finding out the reason and fixing it?

Thanks a lot for the help,

faffo1980

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default UNDO become impossible after modifying SheeChange handler

I believe it's done that way by design. I know I've seen something around
that will undo programmatically, but can't seem to find it now.
--
HTH,

Barb Reinhardt



"faffo1980" wrote:

Hi all,
I'm developing a c# excel addin and in order to make it work I have added a
new handler for the SheetChange event.
This handler modifies some global (addin scope) variables in order to
determine if some row/columns have been deleted and uses the UsedRange
attribute.
After that it become impossible to UNDO the modification.

Could anyone help finding out the reason and fixing it?

Thanks a lot for the help,

faffo1980

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 113
Default UNDO become impossible after modifying SheeChange handler

Hi faffo
After running any macro the undo feature is gone until you do some other
manual changes in the sheet (just as it is when you Save or Autosave runs.

Hope this helps
Regards, Brett

"faffo1980" wrote:

Hi all,
I'm developing a c# excel addin and in order to make it work I have added a
new handler for the SheetChange event.
This handler modifies some global (addin scope) variables in order to
determine if some row/columns have been deleted and uses the UsedRange
attribute.
After that it become impossible to UNDO the modification.

Could anyone help finding out the reason and fixing it?

Thanks a lot for the help,

faffo1980

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
Is this impossible? Louisville Cardinals Excel Discussion (Misc queries) 3 February 14th 07 08:44 PM
UNDO - how many times can I UNDO? Jane Excel Worksheet Functions 2 May 19th 05 03:03 AM
Is this impossible? Chris Excel Worksheet Functions 1 February 10th 05 06:01 PM
Why is my undo function in Excel only can undo the last 1 or 2 ch. 1111111111111111111111111111111111111111 Excel Worksheet Functions 1 November 24th 04 11:13 AM
If this is impossible, just tell me. Corbin Excel Programming 7 June 5th 04 07:44 AM


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