Multipage label caption

R

Ron Mann

Hi All

Is there anyway to set the label name of a tab on a multipage to equal a
worksheet cell value when the userform and multipage are initialised.
 
J

Jacob Skaria

Ron,

Somthing like this. Index 0 denotes the first tab, 1 for second tab and so
on..If you want to set the labels from a continuous range for all tabs; then
assign the caption within a loop.

Private Sub UserForm_Initialize()
Me.MultiPage1.Pages(0).Caption = Worksheets("Sheet1").Range("A1")
End Sub

If this post helps click Yes
 
R

Ron Mann

Hi Jacob,

Thanks for the reply. It was of great help.

I found last night that the following code also worked.

UserForm2.MultiPage1.Page1.Caption = Worksheets("GENERAL").Range("c1")

Mine might be a little clumsy but got there in the end.

Thanks again.

Ron
 

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

Similar Threads

Userform - Return Control Clicked 5
Multipage control help 3
lable caption 2
a way to print 4
MultiPage Control 6
Multipage control 3
Initialization using Multipage Tab 4
Multipage error 1

Top