A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Andreas,
Thanks for your help! Unfortunately, after revising my code per your code sample, I still got the "Invalid procedure call or argument" error. On a hunch, I removed all the double double-quotes from all the conditional formatting formulas in CFArray and re-ran my code. This time everything worked fine!
FYI, below is a sample of one of my conditional formatting formulas:
=AND($A3<>1,$D3-$C3>0,H$2>=$C3,H$2<=$D3,TRIM($G3)=""Data Migration Load"")
The reason for the double double-quotes is because that is what Excel generated when I ran the macro recorder:
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=AND($A3<>1,$D3-$C3>0,H$2>=$C3,H$2<=$D3,TRIM($G3)=""Data Migration Load"")"
and that is what I inputted in my "CF_Lookup" range (excluding the very first and very last double quotes). However, I have now learned that when you exclude the very first and very last double quotes (i.e., the one before "=" and the one after ")" ), the double double-quotes are also unnecessary.
Thanks again for your help. I greatly appreciate it.
Looks like you figured out the answer.