Pianoman23
New Member
- Joined
- May 16, 2014
- Messages
- 25
Hello
I have a series of labels created using the following code:
t = 66
l = 87
Set lbl1 = Controls.Add("Forms.Label.1")
With lbl1
.Name = "label" & i
.Caption = "APRIL"
.Height = 12
.Width = 50
.Left = l
.Top = t
End With
Is it possible to set the backcolor of the created labels within the code? I've tried putting a dot and then looking at the dropdown list, but there's nothing in there that refers to color.
Can anyone help?
I have a series of labels created using the following code:
t = 66
l = 87
Set lbl1 = Controls.Add("Forms.Label.1")
With lbl1
.Name = "label" & i
.Caption = "APRIL"
.Height = 12
.Width = 50
.Left = l
.Top = t
End With
Is it possible to set the backcolor of the created labels within the code? I've tried putting a dot and then looking at the dropdown list, but there's nothing in there that refers to color.
Can anyone help?