I have 13 Excell worksheets, 1,2,3.. 13, one for each month & 1 more for summary.
I am entering some data for each month in separate worksheet in columns A-F, starting for row 4, to below (I don't know how many rows will be in the end of the month.)
I want in sheet # 13 to be the summary of data for entire year (sum of all 12 sheets).
I want to generate the summary sheet with VBA. If I am in sheet 13, clicking on button, with VBA program go first to sheet 1, find the last entered row, then select (Range A4:F & lastrow), copy it, going back to Sheet 13, find field A4, paste it.
Next, going back to Sheet 2, find the last entered row, select (Range A4:F & lastrow), copy it, going back to Sheet 3, find the last entered row+1, past it, going to sheet 3.... and so on to Sheet 12.
I can generate the easiest part of this VBA with macro, but to find the last row, is just doen't work to me, even i was reading some VBA helps.
I'd apreciate if somebody could help me with VBA codes.
Thanks
Les
I am entering some data for each month in separate worksheet in columns A-F, starting for row 4, to below (I don't know how many rows will be in the end of the month.)
I want in sheet # 13 to be the summary of data for entire year (sum of all 12 sheets).
I want to generate the summary sheet with VBA. If I am in sheet 13, clicking on button, with VBA program go first to sheet 1, find the last entered row, then select (Range A4:F & lastrow), copy it, going back to Sheet 13, find field A4, paste it.
Next, going back to Sheet 2, find the last entered row, select (Range A4:F & lastrow), copy it, going back to Sheet 3, find the last entered row+1, past it, going to sheet 3.... and so on to Sheet 12.
I can generate the easiest part of this VBA with macro, but to find the last row, is just doen't work to me, even i was reading some VBA helps.
I'd apreciate if somebody could help me with VBA codes.
Thanks
Les