Nightlytic
Member
Alright,
So I have a macro that moves big chunks of data into a single worksheet using .copy and .paste on the ranges, I want to change this to use the = instead
My issue here sound rather stupid, you know the basic:
Sheets("Sheet1").Range("A1:B10")=Sheets("Sheet2").Range("A1:B10")
And then if you don't know where to end, you can do
LastRow = 10
Sheets("Sheet1").Range("A1:B"&LastRow)=Sheets("Sheet2").Range("A1:B"&LastRow)
But what if I need to have a variable on both the first and the last rows? it's telling me the separator is wrong if I do
Sheets("Sheet1").Range("A"&FirstRow&":"&"B"&LastRow)=Sheets("Sheet2").Range("A"&FirstRow&":"&"B"&LastRow)
Or whatever I can come up with. I'll attach a file, the goal ultimately is to plop data (which has no headings) in sheet 2, on bottom of sheet 1 data, and use = as the method as copy and paste I found didn't work for my particular project. Im trying to find the most performance efficient way as there are a lot of files to merge, running on a loop.
Please help? :/
So I have a macro that moves big chunks of data into a single worksheet using .copy and .paste on the ranges, I want to change this to use the = instead
My issue here sound rather stupid, you know the basic:
Sheets("Sheet1").Range("A1:B10")=Sheets("Sheet2").Range("A1:B10")
And then if you don't know where to end, you can do
LastRow = 10
Sheets("Sheet1").Range("A1:B"&LastRow)=Sheets("Sheet2").Range("A1:B"&LastRow)
But what if I need to have a variable on both the first and the last rows? it's telling me the separator is wrong if I do
Sheets("Sheet1").Range("A"&FirstRow&":"&"B"&LastRow)=Sheets("Sheet2").Range("A"&FirstRow&":"&"B"&LastRow)
Or whatever I can come up with. I'll attach a file, the goal ultimately is to plop data (which has no headings) in sheet 2, on bottom of sheet 1 data, and use = as the method as copy and paste I found didn't work for my particular project. Im trying to find the most performance efficient way as there are a lot of files to merge, running on a loop.
Please help? :/