Ok, this appeared to have been solved (see above posts) until a problem occured (out of nowhere)
PRICES2013_B.xlsm
In the attached excel file, macro searches for the first empy row based on column M and then copies specific cells
from another worksheet (PRICES) to cells in TOTALS.
BUT, I figured out that macro searches for the first empty row but fills in the first empty cells with the transferred values, not the first empty row!
For example,
In worksheet PRICES we enter a period (1.1.13-1.2.13) and a blank consumption (not zero) and ALL 4 values (B4, C4, B6 & L46) are copied to the first empty row (M10) in "TOTALS" worksheet (actually B6 is just blank).
If we go back to "PRICES" and enter another period (1.2.13-1.3.13) but this time enter a consumption then the first two values (B4 & C4) and the 4th value (L46) are copied in the same row but 3rd value (B6) is copied to the first empty cell of "O" column which is of the previous row.
This is a problem. I would like for the macro to search for the first empty row (based on "M") and copy ALL cell values to THAT row even if there are some empty cells in other columns.
This is really needed in the file, not a luxury...
So any ideas how the below code must be changed?
Thanks in advance for your feedback!
Bookmarks