Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Undo Procedure

I am new at VB in Excel for XP and I have a question.

I have a user form with a "Cancel" button. I want to add
a macro that resets everything back to the way it was
prior to the userform opening.

Currently, I have a combobox on the spreadsheet that has
an input range and a cell reference(index #). Whenever
you select an item in this combobox a MsgBox appears
asking if the person is sure they want to change info.
If they select cancel, everything works other than the
selection from the combobox does not revert back to the
original combobox entry.

this may be as clear as mud, but hopefully someone can
get me going in the right direction.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Undo Procedure

You have to keep track of the way it was before you started.

John Walkenbach has some notes/example code at:
http://j-walk.com/ss/excel/tips/tip23.htm



Julie wrote:

I am new at VB in Excel for XP and I have a question.

I have a user form with a "Cancel" button. I want to add
a macro that resets everything back to the way it was
prior to the userform opening.

Currently, I have a combobox on the spreadsheet that has
an input range and a cell reference(index #). Whenever
you select an item in this combobox a MsgBox appears
asking if the person is sure they want to change info.
If they select cancel, everything works other than the
selection from the combobox does not revert back to the
original combobox entry.

this may be as clear as mud, but hopefully someone can
get me going in the right direction.


--

Dave Peterson

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
sub procedure Jim Excel Discussion (Misc queries) 2 November 12th 09 02:52 PM
Stop a Procedure from another procedure Ayo Excel Discussion (Misc queries) 1 October 30th 08 01:42 AM
UNDO - how many times can I UNDO? Jane Excel Worksheet Functions 2 May 19th 05 03:03 AM
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


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