PC Review


Reply
Thread Tools Rate Thread

Change the format of text in disabled controls

 
 
=?Utf-8?B?SG9raWV2YW5kYWw=?=
Guest
Posts: n/a
 
      27th Nov 2006
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 With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      28th Nov 2006
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" <(E-Mail Removed)> wrote in message
news:6F9052DF-95F5-458A-A4ED-(E-Mail Removed)...
> 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 With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
change color of disabled textbox text parez Microsoft Dot NET Framework Forms 3 2nd Apr 2008 07:11 PM
How to change all disabled controls backcolor =?Utf-8?B?VG96ZQ==?= Microsoft Dot NET Framework Forms 4 3rd Apr 2006 09:14 PM
Disabled controls not greyed out display double text =?Utf-8?B?T25kaW5l?= Microsoft Access Forms 2 9th Mar 2006 09:15 PM
change colour of disabled textbox text =?Utf-8?B?QmFzaWw=?= Microsoft Excel Programming 0 25th Aug 2005 06:21 PM
Format of combined text & controls Thomas Microsoft Access Reports 1 3rd Jun 2004 11:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:37 PM.