Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default problem with undo and a user form

Hi, in the following link: http://j-walk.com/ss/excel/tips/tip23.htm

it is well explained how to activate the undo comand if a VBA code is run,
my rpbolem is that I have a userform and when I activate my userform and my
userform change the data on the range I can not undo the actions, all the
saved variavles are errased when the user form is initialisated.

for example:

I have a userform that add a number (that the user type in the textbox) to
all the selected range, when the adding is performed the undo action is
errased.

how to accomplish my goal???

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 735
Default problem with undo and a user form

One option would be for the data on the sheet to be passed to an array, then
onto the UserForm. Changes on the UserForm then get passed to the array and
back into the sheet. The array therefore stores the last changes in the
UserForm which can be used to undo the sheet changes. So even if the
UserForm is unloaded your array still holds the values.



--

Regards,
Nigel




"filo666" wrote in message
...
Hi, in the following link:
http://j-walk.com/ss/excel/tips/tip23.htm

it is well explained how to activate the undo comand if a VBA code is run,
my rpbolem is that I have a userform and when I activate my userform and
my
userform change the data on the range I can not undo the actions, all the
saved variavles are errased when the user form is initialisated.

for example:

I have a userform that add a number (that the user type in the textbox) to
all the selected range, when the adding is performed the undo action is
errased.

how to accomplish my goal???

TIA


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
User Form Problem ??? mully New Users to Excel 5 July 2nd 08 11:53 AM
Problem with User form VBA mayou Excel Programming 3 April 18th 06 02:22 PM
User Form Problem DCSwearingen Excel Discussion (Misc queries) 0 December 29th 05 11:04 PM
Help with a User Form problem please Peter[_28_] Excel Programming 3 October 10th 04 12:32 AM
user form problem jimapos Excel Programming 3 May 25th 04 05:25 PM


All times are GMT +1. The time now is 02:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"