Hi,
I want to insert a msgbox to inform the user that no errors found in the formulas in the selection.
How do I combine the ON ERROR in the following code?
Sub data_to_last_row_month()
lr = Cells(Rows.Count, 19).End(xlUp).Row
msg = MsgBox("NO ERRORS")
Application.ScreenUpdating = False
Range("a2:r2").Select
Selection.AutoFill Destination:=Range("A2:R" & lr)
Range("A2:R" & lr).Select
Selection.SpecialCells(xlCellTypeFormulas, 16).Select
Application.ScreenUpdating = True
End Sub
TY!
I want to insert a msgbox to inform the user that no errors found in the formulas in the selection.
How do I combine the ON ERROR in the following code?
Sub data_to_last_row_month()
lr = Cells(Rows.Count, 19).End(xlUp).Row
msg = MsgBox("NO ERRORS")
Application.ScreenUpdating = False
Range("a2:r2").Select
Selection.AutoFill Destination:=Range("A2:R" & lr)
Range("A2:R" & lr).Select
Selection.SpecialCells(xlCellTypeFormulas, 16).Select
Application.ScreenUpdating = True
End Sub
TY!