How do I change this code so this Macro selects the last row of filtered data (offset by 3). right now it overrides data in a filtered range when I run it.
For example, if my data ranges from A1 to A50. How do I make it select A53, even if some of the last rows are hidden?
For example, if my data ranges from A1 to A50. How do I make it select A53, even if some of the last rows are hidden?
VBA Code:
Sub Signoff()
'
' Signoff Macro
' Keyboard Shortcut: Ctrl+Shift+S
Dim strFullDate As String
strFullDate = Format(Date, "mm.dd.yy")
Range("B" & Rows.Count).End(xlUp).Offset(3).Select
ActiveCell.FormulaR1C1 = "Terah"
Range("B" & Rows.Count).End(xlUp).Offset(1).Select
ActiveCell.FormulaR1C1 = "Completed " & strFullDate
End Sub