how to get back after running a macro

Posted on 2011-04-27
Last Modified: 2012-08-13
I run a macro and I cannot get back to my old data because they where erase ?Ctrl + Z didn't work ? thank u
Question by:sharkyboy
    LVL 12

    Expert Comment


    Two options:

    1) Close, but don't save changes to the file, then re-open and it will be back where you started from.

    2) Do you have a backup of the file and / or data that was erased?  If so, you could copy / paste it back to the current file.

    LVL 12

    Accepted Solution


    Just to note, that if changes are made by a macro (VBA) then 'undo' is not in effect, so you cannot 'undo' what the macro did per se.

    However, whoever wrote the macro *may* have written an undo feature as a safety precaution - this is quite common, and certainly 'best practice', so have a look around to see if there is something like that.

    Unfortunately, even if such 'undo' functionality has been built by the coder, it might not be available if you have saved the file.


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
    This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
    The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
    This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now