Fuga
Registered User.
- Local time
- Tomorrow, 00:04
- Joined
- Feb 28, 2002
- Messages
- 566
I run a macro on an excel sheet. The error comes up on line 2 in this segment. (the formula line)
Range("al15").Select
ActiveCell.Formula = "=IF(N15>MIN(O15:R15);(IF(AND((S14>U14);(S15<U15));(IF(AND((T14>V14);(T15<V15));N15;0));0));0)"
Range("al15:al" & introws).Select
Selection.FillDown
I can type in the formula and it works fine. Why can´t I set it like this in VBA?
Fuga.
Range("al15").Select
ActiveCell.Formula = "=IF(N15>MIN(O15:R15);(IF(AND((S14>U14);(S15<U15));(IF(AND((T14>V14);(T15<V15));N15;0));0));0)"
Range("al15:al" & introws).Select
Selection.FillDown
I can type in the formula and it works fine. Why can´t I set it like this in VBA?
Fuga.