Trying to run the following function to drag a formula I insert into a cell:
Dim LastRowMaster As Long
Sheets("Master").Select
numRows = Range("A1", Selection.End(xlDown)).Rows.Count
LastRowMaster = Sheets("Master").Cells(Rows.Count, 1).End(xlUp).Row
Range("j2").Select
ActiveCell.Formula = "=IFNA(IF(VLOOKUP(E2,Responses!E:R,6,FALSE)=0,"""", (VLOOKUP(e2,Responses!E:R,6,FALSE))),"""")"
Range("j2").Select
Selection.AutoFill Destination:=Range("j2:j" & LastRowMaster)
'Range("J2").Select
Getting a run-time error 1004
Method 'range' of object'_Global'failed
Any ideas?
V/r,
Spencer
Dim LastRowMaster As Long
Sheets("Master").Select
numRows = Range("A1", Selection.End(xlDown)).Rows.Count
LastRowMaster = Sheets("Master").Cells(Rows.Count, 1).End(xlUp).Row
Range("j2").Select
ActiveCell.Formula = "=IFNA(IF(VLOOKUP(E2,Responses!E:R,6,FALSE)=0,"""", (VLOOKUP(e2,Responses!E:R,6,FALSE))),"""")"
Range("j2").Select
Selection.AutoFill Destination:=Range("j2:j" & LastRowMaster)
'Range("J2").Select
Getting a run-time error 1004
Method 'range' of object'_Global'failed
Any ideas?
V/r,
Spencer