I have used some code from here to place some labels on a multipage. I can tell after the 5th label is placed that something is happening because there is a break in the frame after the 5th iteration of the routine, but nothing is visible.
Sub pgSSRs()
Dim MPg As MSForms.MultiPage
Dim NewLabel As MSForms.Label
Dim Listarray As Integer
Dim labelCounter As Long
Listarray = ThisWorkbook.Sheets("SSRs").Range("SSRs").Rows.Count
'MsgBox (Listarray & " SSRs")
'Top = 50
For labelCounter = 1 To Listarray
Set NewLabel = UserForm1.Controls.Add("forms.label.1", "Test" & labelCounter, True)
With NewLabel
.Visible = True
.Caption = "Test" & labelCounter
.Height = 30
.Left = 700
.Width = 50
.Top = Top + 10 * labelCounter
MsgBox (.Top & " iteration")
End With
Next
'MsgBox ("this is the SSR Page!")
End Sub
Can anyone provide assistance in helping me see these labels? Eventually I want to make each label read from a cell on a worksheet, but having trouble with the simple stuff...