Hi,
I have a workbook with 13 sheets. 3 of these are input sheets where data is entered manually (Or pasted). 1 is an output sheet that is holding the final result, and the rest are sheets holding data and VBA code for different processes that run to process data from input to output. When a process is finished the output is saved to another file, and a new process is started after deleting all data.
However, after deleting the manually entered data, it seems like it is not "really" deleted.
For instance, Sheet A holds x number of rows. The number of rows is counted and used as a variable in the VBA code. If this process run thru, the input in Sheet A is deleted, and new data is entered in (a different number of rows), this number is sometimes added on top of the previous number.
So if the first run had 20 rows, and the second 30, the variable holding this value shows 50, not 30, causing an error in the end. This may also happen if the workbook has been saved and closed between the first and second run.
Does anyone have an idea what may cause this?
I have a workbook with 13 sheets. 3 of these are input sheets where data is entered manually (Or pasted). 1 is an output sheet that is holding the final result, and the rest are sheets holding data and VBA code for different processes that run to process data from input to output. When a process is finished the output is saved to another file, and a new process is started after deleting all data.
However, after deleting the manually entered data, it seems like it is not "really" deleted.
For instance, Sheet A holds x number of rows. The number of rows is counted and used as a variable in the VBA code. If this process run thru, the input in Sheet A is deleted, and new data is entered in (a different number of rows), this number is sometimes added on top of the previous number.
So if the first run had 20 rows, and the second 30, the variable holding this value shows 50, not 30, causing an error in the end. This may also happen if the workbook has been saved and closed between the first and second run.
Does anyone have an idea what may cause this?