Macro to copy and paste in next blank cell

dan3721

New Member
Joined
Dec 23, 2009
Messages
18
Hi

I am looking for a macro that will copy what ever is in cell C3 in to the next blank cell into column C from C20 downwards?

What i want is a list to be compiled of the differnt values entered into cell C3. Obviously the macro is run inbetween values changing.

Any help would be much appreciated.

Thanks

Dan
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Try

Code:
Sub test()
Dim LR As Long
LR = WorksheetFunction.Max(20, Range("C" & Rows.Count).End(xlUp).Row + 1)
Range("C3").Copy Destination:=Range("C" & LR)
End Sub
 
Upvote 0
Thanks for reply

Yeah I have tried this. I changed Range("C3") with selection.copy

but every time I have to copy three columns and run the macro.

Is there any other way to select the next three columns automatically. Means I do not want to select every time I run the macro.

Thanks again
 
Upvote 0
Do you mean something like

Code:
Sub test()
Dim LR As Long
LR = WorksheetFunction.Max(20, Range("C" & Rows.Count).End(xlUp).Row + 1)
Range("C3").Resize(, 3).Copy Destination:=Range("C" & LR)
End Sub
 
Upvote 0
#VoG

Sorry It was not my post. My post is

"""Hi there,

I was writing a macro but need your help. I have hundred sets of three columns consisting 21 rows. I need to write a macro that can copy three columns one by one and paste them below first set of three columns. so that all hundred sets will be one set of three columns.
I have 12 worksheets in one workbook to do this. and then I need to combine all 12 worksheets in one. here 12 are the months of year.
I hope, I have explained my problem.

Thanks""

Please guide me how to do it.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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