View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips[_3_] Bob Phillips[_3_] is offline
external usenet poster
 
Posts: 2,420
Default Selecting color number to use in vba code.

Do you mean

..Interior.ColorIndex = Range("A1").value

--
__________________________________
HTH

Bob

"Roger on Excel" wrote in message
...
I use code to fills in cells for the color red - the number for red is 3.

Thus the selected line in the code reads :

.Interior.ColorIndex = 3

I would like the user to be able to define the color themselves in the
spreadheet with a dropdown list.

Is there a way to transpose the code number for the chosen color to the
vba
code macro?

Can anyone help?
Thanks,

Roger