Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've written a function that validates whether data entry
into a cell matches a list of approved entries, and brings up a message box to tell the user of an invalid entry. I would also like the code to undo the last entry. I've tried using sendkeys "^Z" but that doesn't seem to do it. Any suggestions. thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can't do an undo for actions carried out by code. The best you could do
is write a macro that can do the opposite of the other macro. -- RMC,CPA "lrisser" wrote in message ... I've written a function that validates whether data entry into a cell matches a list of approved entries, and brings up a message box to tell the user of an invalid entry. I would also like the code to undo the last entry. I've tried using sendkeys "^Z" but that doesn't seem to do it. Any suggestions. thanks in advance. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you mean undo the last entry if it wasn't an approved
entry then isn't the Data Validation utility tailor made for this? No need for the custom macro either. Regards, Greg -----Original Message----- I've written a function that validates whether data entry into a cell matches a list of approved entries, and brings up a message box to tell the user of an invalid entry. I would also like the code to undo the last entry. I've tried using sendkeys "^Z" but that doesn't seem to do it. Any suggestions. thanks in advance. . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
VBA code to undo previous VBA action | 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 | |||
Setting Font properties in Code clears Undo list | Excel Programming |