| View previous topic :: View next topic |
| Author |
Message |
jeffrey_horner@yahoo.com Newbie

Joined: 30 Sep 2004 Posts: 2
|
Posted: Thu Sep 30, 2004 1:51 pm Post subject: Undoing macro changes with only one undo |
|
|
Essentially I'd like to back-out all changes that a macro made by clicking the undo button once. This behavior is similar to the "Find & Replace" feature. Is there a programmatic way to do this? Can a macro be programmed to do this?
jeff |
|
| Back to top |
|
 |
pitonyak Administrator


Joined: 09 Mar 2004 Posts: 3618 Location: Columbus, Ohio, USA
|
Posted: Mon Oct 04, 2004 6:57 pm Post subject: |
|
|
If your macro makes changes using the API in multiple steps then I think that in general you can not. _________________ --
Andrew Pitonyak
http://www.pitonyak.org/oo.php |
|
| Back to top |
|
 |
jeffrey_horner@yahoo.com Newbie

Joined: 30 Sep 2004 Posts: 2
|
Posted: Tue Oct 05, 2004 7:23 am Post subject: |
|
|
| Interesting. I presume I'm using all API calls since my macro is written entirely in Basic. Is this the case? |
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
Cybb20 Super User


Joined: 02 Mar 2004 Posts: 1569 Location: Frankfurt, Germany
|
Posted: Tue Oct 05, 2004 8:04 am Post subject: |
|
|
I think it all depends on the dispatches that are run with the certain macro.
number of dispatches = number of possible "Undo"-button clicks
You can translate API calls to UNO dispatches on your own, but it will take you some time to find it out. So I don't think there is a way to rewing your macro by clicking the Undo button only one time.
Christian _________________ - Knowledge is Power - |
|
| Back to top |
|
 |
|