I am trying to implement a .Match
function as an array with a variable range in VBA, to find the first non-zero cell in a specific range.
However, currently I only receive a runtime error 1004.
Set myRange = Worksheets("Portf_Mod").Range("AB368:CY368")
With Application.WorksheetFunction
Date_col = .Match(True, [myRange <> 0], 0)
End With