Originally Posted by
MarvinP
Hey dantonic,
To even start this I'd need a sample file to understand what you are trying to accomplish. The task of "Read my code and make it work!" is way to vague to deal with.
To attach a sample file..... Click on "Go Advanced" and then on the Paper Clip Icon above the advanced message area.
Thanks, I apologize, I should have included a file from the beginning. here it is
I actually made some changes and got the code to actually work.
I took my own advice and setup a separate column which I will then hide, to do away with the =VALUE(RIGHT()) function all together, since I just could not get it to work... I set the percentage value in that column, and then simply used that value in my code. Not sure if this was the best solution but it works.
There are still a few issues I would like to take care of.
1. there are some cells in the Range that I would like to keep unaffected or return No color on the background at all times. they are just blank cells. I tried adding a line to check for a "null" adjacent cell, but it's not working.
2. I would like this macro to apply to the cells in real time. As of now, I have to click on the cell and then press enter to apply the changes.
Here is the code:
I don't know why this works vs. the other one. how does the naming affect things? ie Private Sub Wokrsheet_Change(ByVal Target As Range) vs just Sub Worksheet_Change() and setting the Target variable within the function. I also don't know what "ByVal" does
Bookmarks