Can you use a helper sheet? - within your macro, create a new sheet 'Values' and copy - paste special = values from the master sheet and use that data to re-populate, then remove the 'Values' sheet? - I presume that you are setting cells to blank rather than deleting rows.
If this does not work, can the
provide the interruption you are looking for?
---

Originally Posted by
moike
I have a spreadsheet with a Master tab which can be changed and several adjacent tabs (we'll call them A,B,C,D, and E) which can not be changed by the user. The macro is pulling data from the Master tab and putting it on the tabs A through E depending on the different criteria of each line item. Everything is working as it should EXCEPT the user of this spreadsheet added a Summary tab to summarize the data from tabs A through E.
It is important to note that the macro is currently set to clear the contents of the entire tabs A-E before repopulating them with the most recent data from the Master tab. I have it set this way because I didn't want to risk having any leftover values in the various cells of tabs A - E after the macro is run and new data is fed into them.
Once she runs the macro to update all the adjacent tabs based on the changes to the Master tab; she loses the references she had on the Summary tab because of course the cells that are referenced were just deleted.
I can add code to input the formulas after the cells are cleared and then repopulated but I would like to allow her some freedom to make changes to the format of this tab without me having to change the VB code every time. I have tried a few ideas to make this work and the only thing so far is if you copy her Summary tab to another worksheet and close it...you can copy it back to the Summary tab after the macro runs and the references in the formulas are working as they should.
Is there another alternative???
Bookmarks