UserFrom Back Color

A

Abdul

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

How I could get the back color of a userfrom the same way?

I mean all the possible colors

Thanks


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
 
R

RaceEend

Abdul said:
I found the follwing to get the interior color of a cell

How I could get the back color of a userfrom the same way?

I mean all the possible colors

Thanks


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

Userform1.Backcolor=...


--
 

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