I have an Excel Macro which has been running fine for over a year, until yesterday I got an error Run-time error '91'. Object variable or With block variable not set
. I can confirm all sheets are present. Appreciate any advice to troubleshoot. I have highlighted the line where the error occurs.
Sub Insert_Last_to_Input()
Dim dateBaltic As Date
Dim rngFFA As Range
Dim longLastRowNo As Long
Dim longBaltic, longFEI, longMB As Long
dateBaltic = Sheets("Input").Range("B2").Value
Sheets("Baltic FFA").Select
With ActiveSheet
longLastRowNo = .Range("A:A").Find(What:=dateBaltic, LookIn:=xlValues).Row
'**Error above:"Run-time error '91'. Object variable or With block variable not set"**
Set rngFFA = .Range("B" & longLastRowNo & ":F" & longLastRowNo)
End With
End Sub