userform control backcolour.

M

MattShoreson

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.
 
B

Bob Phillips

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" <[email protected]>
wrote in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top