+ Reply to Thread
Results 1 to 6 of 6

Can't Undo due to Macro

  1. #1
    Registered User
    Join Date
    04-10-2012
    Location
    Aalborg
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    20

    Can't Undo due to Macro

    Hi
    Pretty new to this forum and to excel programming, so forgive me if I'm doing wrong here.

    Well, created a macro for recording the date for changes in cells, now the UNDO function won't work whenever I change something in those cells.
    The code used to record is:

    Please Login or Register  to view this content.
    Is there anyway to go around the macro not allowing the undo function to work.


    Thank you for your time.

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Can't Undo due to Macro

    I believe not; any changes done by macro cannot as such be undone.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Registered User
    Join Date
    04-10-2012
    Location
    Aalborg
    MS-Off Ver
    Excel 2003/Excel 2010
    Posts
    20

    Re: Can't Undo due to Macro

    Thanks Søren.
    Seeing probaly being Danish I'm gonna add you as a friend.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Can't Undo due to Macro

    Bjourne,

    You can undo the actions if you have a macro which will reverse the steps performed by the earlier macro. Other than that, you cannot do anything.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Can't Undo due to Macro

    Quote Originally Posted by arlu1201 View Post
    Bjourne,

    You can undo the actions if you have a macro which will reverse the steps performed by the earlier macro. Other than that, you cannot do anything.
    Would that also be possible if you are overwriting cell contents? Apart from having your macro temporarily save contents of a cell before overwriting?

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Can't Undo due to Macro

    Yes, you are right. Incase the user knows what the cell contents were before over-writing, then we can have another macro to put back those contents.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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