Thanks you so much! Is there also a way to force the cells to update if the color changes? Recalculate does not do it.
@Excel10tutorial Жыл бұрын
Use this code. If you edit any cell it will auto update the formula. Function GetColorIndex(VarRange As Range) As Integer Application.Volatile GetColorIndex = VarRange.Interior.ColorIndex End Function
@metrix_x9 ай бұрын
Target.Calculate Use that target.calculate to make other functions trigger the calc as well if needed
@khuramwaqar4182 жыл бұрын
That was really quick and informative. Thanks
@Excel10tutorial2 жыл бұрын
You're most welcome! Please subscribe and be with us.
@monique36 Жыл бұрын
This was super helpful. Thank you!
@Excel10tutorial Жыл бұрын
You're most welcome! Please subscribe and share.
@bjanediamante5757 Жыл бұрын
Thank you! It worked for me.
@Excel10tutorial Жыл бұрын
You're welcome! Please subscribe and be with us
@DoIKnowU17 ай бұрын
hello there. its dery helpful. how can i do the opposit option?
@MohAboAbdo2 жыл бұрын
Thank you so much.
@Excel10tutorial2 жыл бұрын
You're welcome. Please subscribe and be in touch.
@ClosedCircuit-yc5xn5 ай бұрын
Thanks buddy
@Excel10tutorial5 ай бұрын
Happy to help
@jamesmyrthong61122 жыл бұрын
Thank You🙏🙏🙏👍👍👍
@Excel10tutorial2 жыл бұрын
You're welcome. Please subscribe.
@doti.k Жыл бұрын
Thank you that was very helpful.
@Excel10tutorial Жыл бұрын
You're welcome!
@argonaut1194 ай бұрын
Hello: Would you know how to get the EXACT RGB value in Excel using VBA? I am trying to get the exact RGB values so that I can then use Fill Color with that specific RGB value in other cells. I have many cells with different colors in certain cells, columns or rows. Need to fill certain cells with specific colors based on the content of other cells. Some have conditional formatting and others do not. Tried to do this using ONLY Excel funtions (like CELL(...)) but Excel does not have a non-macro way of identifying the color ** (which I find just incredible that Excel could not provide a simple CELL('rgbvalue') to obtain the RGB value of a cell). What would be the simplest VBA code for this? I am now reviewing your VBA course to see how to better use VBA to support Excel requirements. Good job in teaching these topics. Thanks.
@Excel10tutorial4 ай бұрын
Thanks for subscribing. Here is your solution. The formula will be =GetRgbColor(A2) where A2 will be the cell reference. The code will be the following: Function GetRgbColor(Rng As Range) As String Dim ColorValue As Long ColorValue = Rng.Interior.Color GetRgbColor = (ColorValue Mod 256) & ", " & ((ColorValue \ 256) Mod 256) & ", " & (ColorValue \ 65536) End Function
@vincentrose88898 ай бұрын
Is there a way to update the value if the cell colour updates