I'm trying to store LastRow
as an Integer
but keep getting "Run-time error '9': Subscript out of range". The sheet I need it to work in is "Self-Service Report". The code I'm using is:
Dim LastRow As Integer
LastRow = ThisWorkbook.Sheets("Self-Service Report").Cells(Rows.Count, 1).End(xlUp).Row