Hi,
I have a big dataset in a particular sheet. Each month the outcome of the figures in the cells CJ87:CV1000 needs to be copied and pasted as hard values in cells L87:w1000. (This in order to start with updated data for the new month). Columnheader January is represents by column L (old figures) and CJ (new figures to be copied into L) and February is M and CK and so on.
All the values in range CJ87:cv1000 are calculated by formulas, but multiple rows in range L87:w1000 are subtotals(calculated) and other cells hard values. The formulas in this range needs to be kept untouched.
I have 2 ways in mind to let this work.
1-
each cell with a value in range CJ87:CV1000 needs to be copied, then offset (0, -77) and pasted as value. But if the target cell contains a formula than the paste needs to be aborted and the macro must find the next cell in the range.
or 2-
The dataset is completely protected, but not the range CJ87:CV1000.
The macro search for not protected cells. Finds the first unprotected cell, then unprotects the sheet and offsets -77 and pastes the value. Than it protects the sheet again and searches for the next unprotected cell and repeats the whole process as above.
Thankx for the advise.
Bookmarks