Copy and paste to the last Row of columb A

  • Thread starter Thread starter tran1728
  • Start date Start date
T

tran1728

Good morning, pls help me,

A B
9800 =A1*2
9800
9800
9800
9800

I want copy formula B1 and Paste B2 to ....., stop a t the last row of A.

Thanks
 
Hello tran1728

you can try this.

Sub MacroCopy_paste()

Range("B1").Select
Application.CutCopyMode = False
Selection.Copy
Range("A1").Select
Selection.End(xlDown).Select

Cells(ActiveCell.Row, ActiveCell.Column + 1).Select
Range(Selection, Selection.End(xlUp)).Select
ActiveSheet.Paste


End Sub

-Asraf
 
Hi Asraf

I dont think the OP is looking for a macro. However; to your response..you
dont need to select the cell. You can try out the below two solutions ()...

Range("B1:B" & Cells(Rows.Count, "A").End(xlUp).Row).Formula = _
Range("B1").Formula

OR use the Autofill method as below

Range("B1").AutoFill Destination:=Range("B1:B" & _
Cells(Rows.Count, "A").End(xlUp).Row)
 
Back
Top