![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 364
|
Anyone know how to do this?
Thx, Noir |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
what? Change it permanently red? You would have to set up a loop to check where the cursor is located and change the cell contents accordingly.
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 364
|
Not permanently, just while the cursor hovers over it. (I would like to have the font on my Command button turn red).
Noir |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Oh, on a command button? That's different then. That might be a bit easier.
Where is this button? On a worksheet? Userform? If it's on a worksheet did you create it using the "Control Toolbox" or the "Forms" menu? |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Posts: 364
|
It is a Worksheet and was created using the Control Toolbox.
|
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
This is the best I could come up with, I inserted a commandbutton called commanbutton1, change this in the code to whatever the name of your button is:
The drawbacks are that if you move the mouse away very quickly, the text will stay red, I used the value 5 to make the box smaller in terms of the colour changing to try to reduce this fast mouse move. HTH Oh yeah, to insert the code, rightclick on the name tab of the sheet that holds the button and select "View Code", copy and paste this code into the window and change "CommandButton1" to the name of your button, there are only two places in the code where you need to do this. |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Mar 2002
Posts: 364
|
Thanks for all your hard work Mark!! It worked fine.
Noir |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|