Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to change color of buttons if pressed?
How can I change the color of certain buttons if they get pressed?
I would "like" to use color NAMES (RED, GREEN, BLUE, BROWN etc) I have tried to declare the name as public in my declarations, and then assing a RGB value (like RED= "255,0,0") but this is the wrong type Also, when I move to the NEXT record, I would like to reset the colors of the buttons I have gotten the original color to set with .commandbuttonxx.background = RGB(125, 125,125), and I can change it when I press the button, but I can not figure out where and what to put it in order to "RESTORE" when I move from record to record. If I put it where I refresh my .textboxes , I get an error: Compile Error: Method or data member not found (this is with out the . in front) and if I do have the period in frount, I get a compile error: Invalid or unqualified reference Thanks Phil |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
how do I change which cell becomes active when enter is pressed? | Excel Discussion (Misc queries) | |||
In Excel can i change the color of the filter buttons (arrows)? | Excel Worksheet Functions | |||
COMMAND BUTTONS and CELL COLOR | Excel Discussion (Misc queries) | |||
Multiple fill color buttons | Excel Discussion (Misc queries) | |||
changing the color of the buttons | Excel Discussion (Misc queries) |