Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sub procedure | Excel Discussion (Misc queries) | |||
Stop a Procedure from another procedure | Excel Discussion (Misc queries) | |||
UNDO - how many times can I UNDO? | Excel Worksheet Functions | |||
Why is my undo function in Excel only can undo the last 1 or 2 ch. | Excel Worksheet Functions |