Code to copy cells

danay

New Member
Joined
Jul 26, 2011
Messages
4
I am working on creating another report that I am stumped on. I have a macro that deletes the columns of data I do not need but the report can be ran up to 90 days so I could have up to 100 columns of data that I need to copy and the rows are limitless as well. What I need to be able to do is copy the data from worksheet "test data" (Based upon the last column and row with data and paste into worksheet called "Report" starting in A4. I was able to do it based upon row but not row and column.

Thanks
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
This could provide you with the Last non-blank Column Number in your sheet...

With ActiveSheet
LC = Range("a1").SpecialCells(xlCellTypeLastCell).Column
End With
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,628
Members
452,933
Latest member
patv

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top