Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Why Undo commandbutton is Cleared ?
Hi all,
I have a problem if I use : ' sub cariorfind() set findx = activesheet.cells.find(What:="words") if not findx is nothing then msgbox findx.address end sub ' the undo command lists is cleared after the procedure above, so I can't undo my previous action... :( anyone please help me to answer it ...! Thank you very much.. regds, Halim |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Why Undo commandbutton is Cleared ?
Halim,
As far as I know, you cannot undo anything done via VBA code. I may be wrong, but I have noticed this and it has never let me undo anything I have done through code. is there a specific action you wish to undo as you may be able to achieve it with your code, like storing the previous settings and then restoring after your code? Duncan wrote: Hi all, I have a problem if I use : ' sub cariorfind() set findx = activesheet.cells.find(What:="words") if not findx is nothing then msgbox findx.address end sub ' the undo command lists is cleared after the procedure above, so I can't undo my previous action... :( anyone please help me to answer it ...! Thank you very much.. regds, Halim |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Why Undo commandbutton is Cleared ?
Hi Halim,
See John Walkenbach's comments and suggestions at: http://www.j-walk.com/ss/excel/tips/tip23.htm --- Regards, Norman wrote in message oups.com... Hi all, I have a problem if I use : ' sub cariorfind() set findx = activesheet.cells.find(What:="words") if not findx is nothing then msgbox findx.address end sub ' the undo command lists is cleared after the procedure above, so I can't undo my previous action... :( anyone please help me to answer it ...! Thank you very much.. regds, Halim |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Why Undo commandbutton is Cleared ?
Hi Duncan,
As far as I know that's not always but often, and I think that code not change value in cells or something that react undo lists... rgds, halim Duncan menuliskan: Halim, As far as I know, you cannot undo anything done via VBA code. I may be wrong, but I have noticed this and it has never let me undo anything I have done through code. is there a specific action you wish to undo as you may be able to achieve it with your code, like storing the previous settings and then restoring after your code? Duncan |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Why Undo commandbutton is Cleared ?
Hi Norman,
I've tried that way... but it seems only undo once ... How to add the existing undo action lists ... ? thanks, hAlim Norman Jones menuliskan: Hi Halim, See John Walkenbach's comments and suggestions at: http://www.j-walk.com/ss/excel/tips/tip23.htm --- Regards, Norman wrote in message oups.com... Hi all, I have a problem if I use : ' sub cariorfind() set findx = activesheet.cells.find(What:="words") if not findx is nothing then msgbox findx.address end sub ' the undo command lists is cleared after the procedure above, so I can't undo my previous action... :( anyone please help me to answer it ...! Thank you very much.. regds, Halim |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
Why Undo commandbutton is Cleared ?
Hi Halim,
Many macro instructions will destroy Excel's undo list. There is no way to restore the undo list. If you wish to provide an undo facility for your macro, you will need to add code to provide your own undo functionality. In the suggested link, John Walkenbach demonstrates a simple undo strategy. In his commercially available Power Utility Pak utility, John Walkenbach provides more complex examples. In short, however, if you require an undo functionality in your VBA routines, invariably the onus will be on you to add code to provide such functionality. --- Regards, Norman wrote in message ups.com... Hi Norman, I've tried that way... but it seems only undo once ... How to add the existing undo action lists ... ? thanks, hAlim |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
I have a file that is 4mb. Cleared all formating...still big | Excel Worksheet Functions | |||
Password cleared in clean up | Excel Discussion (Misc queries) | |||
Undo Menu is Automatically Cleared | Excel Discussion (Misc queries) | |||
why the value in the column X is cleared | Excel Programming | |||
why the value in the column X is cleared | Excel Programming |