Consulting

Results 1 to 4 of 4

Thread: Capturing the Undo Stack

  1. #1

    Capturing the Undo Stack

    Am looking for a way to capture the undo stack. What I want to do is to then export it to a log file for error trapping. If I can figure out where it is and how to capture it, the output part is simple.

  2. #2
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    What information exactly are you looking to capture? It is not exposed in VBA but you might be able to read the Undo items off the menu bar if that helps?
    Regards,
    Rory

    Microsoft MVP - Excel

  3. #3
    will look into. am trying to capture the list of undo items that you see when you click on undo items. will look at properties of command bars - see what i can find

  4. #4
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    For example:
    [VBA] Dim ctl As CommandBarControl
    Set ctl = Application.CommandBars("Standard").Controls("Undo")
    Debug.Print ctl.List(4)
    [/VBA]
    HTH
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

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