How to add a button to restore all altered cells original values?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to add a reset button to an excel spreadsheet that will restore the
values of all changed cells to the original saved ones.

Any help would be appreciated.

Thanks

Dawn
 
Hi
this would require quite some VBA code as you somehow have to store the
original values for example on a separate hidden sheet
 
Not sure this is what you want, but this macro will revert the file to the
last saved version.
Sub RevertFile()

wkname = ActiveWorkbook.path & "\" & ActiveWorkbook.Name
ActiveWorkbook.Close savechanges:=False

Workbooks.Open FileName:=wkname

End Sub

Greg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top