Pages on userform

  • Thread starter Thread starter Greg
  • Start date Start date
G

Greg

Hi all

I am using the multipage option on a userform. It has 8 pages in it and I
would like to have the names of each page to represent a certain cell value.

Is this possible?

Thanks Greg
 
Greg,

This assumes page labels in first sheet first column.

Private Sub UserForm_Initialize()
Dim lCounter As Long
With MultiPage1
For lCounter = 0 To .Pages.Count - 1
.Pages(lCounter).Caption = Sheets(1).Cells(lCounter + 1, 1)
Next lCounter
End With
End Sub

Robin Hammond
www.enhanceddatasystems.com
 

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

Back
Top