Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Change the format of text in disabled controls

Howdy,
Anyone know how to change the formatting of text in a forms control that has
been disabled so that it's not etched gray?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Change the format of text in disabled controls

AFAIK cannot change that. Instead of disabling assign some property as a
flag to indicate if the macro should be aborted. The property might be
stored in a cell value or anything, perhaps some format property of the
control.

If a control property, eg caption difference, subtle colour change etc, in
the onaction macro

Dim shp As Shape
Set shp = ActiveSheet.Shapes(Application.Caller)
or
Dim obj As Object
Set obj = ActiveSheet.DrawingObjects(Application.Caller)

And read the property of the object or shape-object to determine if the
macro should be aborted.

Regards,
Peter T



Get the onaction macro to read some property
"Hokievandal" wrote in message
...
Howdy,
Anyone know how to change the formatting of text in a forms control that

has
been disabled so that it's not etched gray?

Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combo Box text and Controls changing size on Monitor change Richhall[_2_] Excel Worksheet Functions 0 January 12th 10 12:38 PM
Color of Commandbars Controls (buttons) when disabled MrT Excel Programming 0 July 17th 06 06:03 PM
Additional Controls disabled Perico[_2_] Excel Programming 2 June 17th 06 07:35 AM
ActiveX Controls are disabled [email protected] Excel Programming 2 June 7th 06 07:17 AM
change colour of disabled textbox text Basil Excel Programming 2 August 25th 05 06:58 PM


All times are GMT +1. The time now is 05:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"