Ok, so I normally develop with Excel set to A1 format.
I have a scenario where my VBA code checks the value of a cell, and then depending on the value the address of another cell is stored.
I then setup some conditional formatting, and had been using that stored address as a reference.
Perhaps clearer with some example code;
Now this works FINE when Excel is set to use A1 reference style, but if I change it to use R1C1 reference style, then the code fails when it tries to add the format condition.Please Login or Register to view this content.
It seems that the default of Address is to return in A1 format, which then the re-assignment to the conditional formatting fails on.
So is there any way for me to tell what format Excel is currently using, and therefore know which format I should enter formula using?
Bizarrely I am sure I have entered Conditional Formatting formula in R1C1 format when Excel has been set to use A1 and not had a problem, but I might be wrong
Bookmarks