D
dipsy
I am getting an error message when I use the following
formula in VBA:
Cells(I, (16 + K)).formula = _
"=if(iserror(index(MONTHLY!$A:$N), _
match(Plan!(Cells(I, 3).Value), MONTHLY!$A:$A, False),
j),0 _
(index(MONTHLY!$A:$N), match(Plan!Cells(I, 3).Value,
MONTHLY!$A:$A, False), j)"
Here - K, I and J are different counters. When I use the
following formula I am fine
Cells(I, (16 + K)) = Application.Index(Worksheets
("MONTHLY").Range("$A:$N"), _
Application.Match(Worksheets("Plan").Cells(I, 3).Value, _
Worksheets("MONTHLY").Range("$A:$A"), False), j)
but I need to check for the error.
Thanks in advance.
formula in VBA:
Cells(I, (16 + K)).formula = _
"=if(iserror(index(MONTHLY!$A:$N), _
match(Plan!(Cells(I, 3).Value), MONTHLY!$A:$A, False),
j),0 _
(index(MONTHLY!$A:$N), match(Plan!Cells(I, 3).Value,
MONTHLY!$A:$A, False), j)"
Here - K, I and J are different counters. When I use the
following formula I am fine
Cells(I, (16 + K)) = Application.Index(Worksheets
("MONTHLY").Range("$A:$N"), _
Application.Match(Worksheets("Plan").Cells(I, 3).Value, _
Worksheets("MONTHLY").Range("$A:$A"), False), j)
but I need to check for the error.
Thanks in advance.