W
Walter
I have a group of spreadsheets in a workbook, which I filter at the end of
each week. What I am now trying to do is to copy that filtered data to
another spreadsheet that I call “Weekly Totalsâ€, all sheets are in one
workbook.
I have create code that will filter each sheet the way I want to see the
information, but when I copy it over to my “Weekly Totals†sheet, this then
is where I am having the problem.
Sheet 1 has four lines of filtered data that is copied by macro to the sheet
“Weekly Totalsâ€, now when I want to copy sheet 2’s information, which only
has one line of filtered data in this example, it will erase sheets one data,
and copy sheet two data in the first row. I’m starting this copy process to
cell A1
Some of the code that I have tried are the following:
Sub Macro1()
Dim mlastrow as Integer
mlastrow=Cells(Rows.Count,â€Aâ€).End(xlUP).Row + 1
End Sub
Or
Debug.Print Activesheet.Range(“A65536â€).End(xlUp).Row + 1
Or
Sub Macro1()
Dim mlastrow as Range
Mlastrow=Cells(Rows.Count,â€Aâ€).End(xlUp).Row
End Sub
Why are the above formula’s not working the way I expect them to work?
Walter
each week. What I am now trying to do is to copy that filtered data to
another spreadsheet that I call “Weekly Totalsâ€, all sheets are in one
workbook.
I have create code that will filter each sheet the way I want to see the
information, but when I copy it over to my “Weekly Totals†sheet, this then
is where I am having the problem.
Sheet 1 has four lines of filtered data that is copied by macro to the sheet
“Weekly Totalsâ€, now when I want to copy sheet 2’s information, which only
has one line of filtered data in this example, it will erase sheets one data,
and copy sheet two data in the first row. I’m starting this copy process to
cell A1
Some of the code that I have tried are the following:
Sub Macro1()
Dim mlastrow as Integer
mlastrow=Cells(Rows.Count,â€Aâ€).End(xlUP).Row + 1
End Sub
Or
Debug.Print Activesheet.Range(“A65536â€).End(xlUp).Row + 1
Or
Sub Macro1()
Dim mlastrow as Range
Mlastrow=Cells(Rows.Count,â€Aâ€).End(xlUp).Row
End Sub
Why are the above formula’s not working the way I expect them to work?
Walter