Hi,
I need a line of code that looks at tab "XYZ"
It needs to check AF8:AF19 and find "Reporting Month"
eg If AE14 = "Reporting Month", it then must offset two columns, therefore finding "AH14", iF AH14= "=G8", then it does not call the sub "DoWork"
If AE14 = "Reporting Month" and AH14 is blank, then call the sub "DoWork"
Hope this makes sense!
Thanks
pls try
Sub macro()
intOffset = WorksheetFunction.Match("R
If Range("AF" & 8 + intOffset).Formula = "" Then
Call DoWork
End If
End Sub
Regards