Roderick_E
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 2,051
I have a dropdown list in a sheet from which the user will select a color (the 7 constants) red, cyan...
In my code I wanted to simply put "vb" before it something like:
But it fails to produce the color. Any ideas? Is there something that evaluates a string "vbred" as vbred?
In my code I wanted to simply put "vb" before it something like:
Code:
xcolor = "vb" & user-selected-color
cells(x,y).interior.color = xcolor