Hi
I've got a VBA formula which works fine from O2-O700 but not being an experienced VBA writer I'm struggling to find out how to make the formula expand to rows O701 and beyond once new data has been added, is anyone able to help please? Thank you
Sub FloodFormula()
'
' FloodFormula Macro
'
'
Sheets("Student List").Select
Range("O2").Select
ActiveCell.FormulaR1C1 = "=COUNTIF(UPN,UPN_list)"
Range("O2").Select
Selection.AutoFill Destination:=ActiveSheet.Range("$O$2:$O$700")
ActiveSheet.Range("$O$2:$O$700").Select
End Sub
I've got a VBA formula which works fine from O2-O700 but not being an experienced VBA writer I'm struggling to find out how to make the formula expand to rows O701 and beyond once new data has been added, is anyone able to help please? Thank you
Sub FloodFormula()
'
' FloodFormula Macro
'
'
Sheets("Student List").Select
Range("O2").Select
ActiveCell.FormulaR1C1 = "=COUNTIF(UPN,UPN_list)"
Range("O2").Select
Selection.AutoFill Destination:=ActiveSheet.Range("$O$2:$O$700")
ActiveSheet.Range("$O$2:$O$700").Select
End Sub