Does VBA conditionnal formating suffer from the same bug as "manual" conditionnal formating ?

Baptiste 25 Reputation points
2024-02-06T09:57:31.0033333+00:00

Hi,

We have an issue on a shared file. We use some conditionnal formating and some time it changes itself the range where it should apply.

For exemple if A1 = 100 B2 is in red, it will work perfectly but I don't why at a random time it will go if A1 = 100 C2 is in red. (it is more if A1="..." and B1="..." -> A1:K1 is in red and A1:K1 change for A1:H1;J1:K1)

So I saw that we can use macro to put conditionnal formating but I was wondering if the same "bug" will occur with the macro or if it safe ?

+Is it possible to convert my already used conditionnal formating into VBA one ? Or do you have exemple ?

Thanks for reading

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,530 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,575 questions
{count} votes