Copy Cell to Last Row

cheesiepoof05

Board Regular
Joined
Dec 30, 2010
Messages
82
I am trying to get VBA code to copy the value in A2 and paste it in A3 through the last row. In the example below, "FUN!" would be pasted into A3-A6. Please note there could be blanks in other columns and the last row will vary. Thank you!

1620938151845.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Maybe...

VBA Code:
Range("A3:A" & Columns("B:C").Find("*", , xlValues, , xlByRows, xlPrevious).Row).Value = Range("A2").Value
 
Upvote 0
Solution
Or [A2].Resize([A1].CurrentRegion.Rows.Count - 1).FillDown …​
 
Upvote 0
In this case it shoud be your way or this one (so many variations as usual) : [A2].Copy Range("A3:A" & ActiveSheet.UsedRange.Rows.Count)
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,826
Members
449,190
Latest member
rscraig11

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