Macro Help Needed - copy only cells with data into specific cell on different sheet

seilermike

New Member
Joined
Jun 5, 2013
Messages
32
I'm trying to copy only the data in column "A" in a sheet named "Dups" into another sheet named "InvSummary" in cell "D7". I've tried to write and run a macro but cannot seem to get it to work. The data in column "A" starts in row 1 and could go 2 row or up to 1000. Any/All help is greatly appreciated.
 
Try

Code:
Sub btest()
Dim LR As Long
With Sheets("Dups")
    LR = .Range("A" & Rows.Count).End(xlUp).Row
    .Range("A1:A" & LR).Copy Destination:=Sheets("InvSummary").Range("D7")
End With
End Sub
 
Upvote 0

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