Repost: Userfrom Back Color

A

Abdul

I found the follwing to get the interior color of a cell

How I could get ALL the POSSIBLE Back Color of a userfrom the same way?



Sub ListColorIndexes()
Dim Ndx As Integer

For Ndx = 1 To 56
Cells(Ndx, 1).Interior.ColorIndex = Ndx
Cells(Ndx, 2).Value = Ndx
Next Ndx
End Sub

Thanks
 
P

Peter T

The backcolor of a userform could be any one of 16+ million colours, or are
you looking for system colours. If so search for examples with the
GetSysColor API.

Regards,
Peter T
 

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