Hi
I have an issue with the conditional format when i manually enter the an array formula into the formula field in the conditional format window it works.
eg =IF(OR(IF(E4:E6<NOW(),IF(E4:E6="""",FALSE,TRUE),FALSE))=TRUE,TRUE,FALSE)"
If i enter the same array formula via VBA it doesnt work until i manual open the conditional format window and click ok to close it.
eg Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=IF(OR(IF(E4:E6<NOW(),IF(E4:E6="""",FALSE,TRUE),FALSE))=TRUE,TRUE,FALSE)"
if i do the same thing with this non array formula it works fine both via vba and manually.
=IF(SUM(G4:G6)>3,TRUE,FALSE)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
<o>I have read somewhere that conditional formatting always treats the formulas as a array formula but it doesnt seem to do that when i have added it in via VBA.</o>
<o></o>
<o>Any Idea's?</o>
<o></o>
<o>Thanks</o>
<o>tigs</o>
I have an issue with the conditional format when i manually enter the an array formula into the formula field in the conditional format window it works.
eg =IF(OR(IF(E4:E6<NOW(),IF(E4:E6="""",FALSE,TRUE),FALSE))=TRUE,TRUE,FALSE)"
If i enter the same array formula via VBA it doesnt work until i manual open the conditional format window and click ok to close it.
eg Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=IF(OR(IF(E4:E6<NOW(),IF(E4:E6="""",FALSE,TRUE),FALSE))=TRUE,TRUE,FALSE)"
if i do the same thing with this non array formula it works fine both via vba and manually.
=IF(SUM(G4:G6)>3,TRUE,FALSE)<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
<o>I have read somewhere that conditional formatting always treats the formulas as a array formula but it doesnt seem to do that when i have added it in via VBA.</o>
<o></o>
<o>Any Idea's?</o>
<o></o>
<o>Thanks</o>
<o>tigs</o>