Consulting

Results 1 to 3 of 3

Thread: Undo Stack

  1. #1
    VBAX Regular
    Joined
    Jul 2014
    Posts
    79
    Location

    Undo Stack

    Guys,

    Does anyone know of a method to accomplish one of the following:

    1. Stop an action going to the built-in undo stack (e.g. being able to select a word and apply bold formatting but not have it show in the undo stack as 'Bold').

    2. Delete an item from the built-in undo stack.

    I've searched the net but there doesn't seem to be any obvious way to do any of the above. I am aware of creating custom undo records but it is specifically one of the above points I need a solution to. The only other option I can see is creating a completely custom undo stack, which I was hoping to avoid.

    Joe

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,727
    Location
    Only thing I know is the document.UnDoClear, which might not be enough for your needs


    https://msdn.microsoft.com/en-us/lib...ffice.15).aspx


    This method corresponds to the list of items that appears when you click the arrow beside the Undo button on the Standard toolbar. Include this method at the end of a macro to keep Visual Basic actions from appearing in the Undo box (for example, "VBA-Selection.InsertAfter").
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    VBAX Regular
    Joined
    Jul 2014
    Posts
    79
    Location
    Thanks Paul. I will look further into that. Like you said, not sure if it will be enough.

    Joe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •