+ Reply to Thread
Results 1 to 6 of 6

undo execute after macro

  1. #1
    Registered User
    Join Date
    02-10-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    46

    undo execute after macro

    i have a macro to insert a new row and copy formula, from the row above
    but if i do a mistake, the undo is not possible
    why?

    the macro is this one
    Please Login or Register  to view this content.
    Last edited by royUK; 02-18-2011 at 05:41 AM. Reason: add code tags

  2. #2
    Registered User
    Join Date
    02-10-2011
    Location
    Portugal
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: undo execute after macro

    after search i reach the conclusion that its a excel problem
    and there is nothing to do

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: undo execute after macro

    That's correct, once code modifies anything on a worksheet, the Undo capability is gone. It's a good reason to think hard before using VBA.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,529

    Re: undo execute after macro

    I don't think it's a problem ... I think it's by design.

    If you consider what a VBA macro can be made to do, it would be impossible to keep track and undo everything.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: undo execute after macro

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: undo execute after macro

    See John Walkenbach's suggestion

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1