I tried to make a textbox in a userform changes its background, green if less than 100% and red if more or equal to 100%. So far I made 2 different codes and I got 2 different results!
The first code is:
And I got the correct result, but the format is not in percentage.![]()
Please Login or Register to view this content.
The second code is:
I managed to change the format to percentage, but I got the background color wrong.![]()
Please Login or Register to view this content.
What is wrong with my code in the second one? I did the same thing, except that I changed the format from 0.00 to 0.00%, and somehow I got the background the other way around.
Is there any way for me to rectify this? I want to display it as percentage, and get the background color to be green if its less than 100%, and red if equal or more than 100%.
Thank you in advance.
Bookmarks