userform - textbox

mortgageman

Well-known Member
Joined
Jun 30, 2005
Messages
2,015
I'm not sure if this is an Excel gotcha. I have disabled the textboxes on my wari game userform (to prevent the users from cheating *ahem* I meant changing them during the game). Since this makes the numbers looks (too) grey I went to the VBA editor and changed the font to BOLD (just like I was taught on this board :-D ) However, it had no effect. When I show the userform it was still just as grey.

Is there any way to disable a textbox but still make the text in the box look darker?

Gene, "The Mortgage Man", Klein
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I think if you disable, or even "lock" the textbox, you can set the back and fore color properties at the same time...I think you can change the font color by changing the ForeColor proprety ...I would think the event that triggers locking them would be able to similarly affect the forecolor
 
Upvote 0
Gene

What code did you use to disable the textboxes?

Did you set the Enable property to False?

Why not set the Locked property to True?
 
Upvote 0
What code did you use to disable the textboxes?

Did you set the Enable property to False?

Why not set the Locked property to True?

Because I didn't know about it! I do now. Thanks.

Gene, "The Mortgage Man", Klein
 
Upvote 0

Forum statistics

Threads
1,225,530
Messages
6,185,477
Members
453,297
Latest member
alvintranvcu123

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top