I'm looking to drop a formula (column A) to the bottom of a separate range (column H). My data set is very large so want to drop formulas and paste special values over the top of the ranges selected.
Ideally I'd like to create a loop if this is possible so the file doesn't take ages to populate all of the formulas.
Apologies if this has been covered in another post, this is my first time posting. Code below used so far
Sub CC_no()
Sheets("Data").Select
Dim rng As Range, cell As Range
Dim N As Long
N = Cells(Rows.Count, "H").End(xlUp).Row
Set rng = Range("A2:A" & N)
Set cell = Range("H2:H" & N)
For Each cell In rng
Next cell
rng = "=VLOOKUP(H2,'PPD Data'!$K:$AZ,42,0)"
Sheets("Data").Select
Range("A2:A" & N).Select
Application.CutCopyMode = False
Selection.Copy
Range("A2:A" & N).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Call Brand
End Sub
Sub Brand()
Sheets("Data").Select
Dim rng As Range, cell As Range
Dim N As Long
N = Cells(Rows.Count, "H").End(xlUp).Row
Set rng = Range("B2:B" & N)
Set cell = Range("H2:H" & N)
For Each cell In rng
Next cell
rng = "=VLOOKUP(A2,Cost_centre_data!$B:$J,7,0)"
Sheets("Data").Select
Range("B2:B" & N).Select
Application.CutCopyMode = False
Selection.Copy
Range("B2:B" & N).Select
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
End Sub