Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default userform control backcolour.


code is as follows:

Dim cbobox As Control

With ufrmRepoData
For Each cbobox In .Controls
If Right(cbobox.Name, 1) = 2 Then
If blnEnable Then cbobox.Interior.ColorIndex = vbWhite
End If
Next cbobox
End With

interior.colorindex doesnt work, how do I set the back colour via
code?
any help gratefully appreciated.
Matt.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=537170

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 371
Default userform control backcolour.

Try:
If blnEnable Then cbobox.BackColor = vbWhite

hth

Geoff

"MattShoreson" wrote:


code is as follows:

Dim cbobox As Control

With ufrmRepoData
For Each cbobox In .Controls
If Right(cbobox.Name, 1) = 2 Then
If blnEnable Then cbobox.Interior.ColorIndex = vbWhite
End If
Next cbobox
End With

interior.colorindex doesnt work, how do I set the back colour via
code?
any help gratefully appreciated.
Matt.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=537170


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default userform control backcolour.

Dim cbobox As Control

With ufrmRepoData
For Each cbobox In .Controls
If Right(cbobox.Name, 1) = 2 Then
If blnEnable Then cbobox.BackColor = vbWhite
End If
Next cbobox
End With


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"MattShoreson"
wrote in message
news:MattShoreson.26z2kb_1146224102.9769@excelforu m-nospam.com...

code is as follows:

Dim cbobox As Control

With ufrmRepoData
For Each cbobox In .Controls
If Right(cbobox.Name, 1) = 2 Then
If blnEnable Then cbobox.Interior.ColorIndex = vbWhite
End If
Next cbobox
End With

interior.colorindex doesnt work, how do I set the back colour via
code?
any help gratefully appreciated.
Matt.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile:

http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=537170



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default userform control backcolour.


I believe the phrase ' the answer's in the question' applies.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=537170

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default userform control backcolour.

aah, but you mis-spelt it (or rather MS did) <G

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"MattShoreson"
wrote in message
news:MattShoreson.26z76y_1146230101.1415@excelforu m-nospam.com...

I believe the phrase ' the answer's in the question' applies.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile:

http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=537170





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default userform control backcolour.


I think it's a bug in their software.


--
MattShoreson
------------------------------------------------------------------------
MattShoreson's Profile: http://www.excelforum.com/member.php...fo&userid=3472
View this thread: http://www.excelforum.com/showthread...hreadid=537170

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
Dim Userform Control donbowyer Excel Programming 5 October 28th 05 12:09 AM
Control Sequence from Userform Control Nigel Excel Programming 3 December 29th 04 01:25 PM
Userform control ZMore Excel Programming 1 March 5th 04 11:34 PM
Userform control Phillips Excel Programming 1 November 20th 03 07:33 PM
UserForm Control Richard Choate Excel Programming 0 July 16th 03 06:50 PM


All times are GMT +1. The time now is 10:22 AM.

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"