Dynamically name MultiPage Pages

J

JakeyC

I'm using the statement

UserForm1.MultiPage1.Page1.Caption = "whatever"

to name the pages of my Multipage.

I want to use a loop to name pages 1 through 20 similar to:

While j < 20

UserForm1.MultiPage1.Page & j & .Caption = "whatever"

j = j + 1

Wend

But that is apparently not the right syntax or maybe concatenating j as
an integer is wrong?

Regards
JakeyC
 
J

JakeyC

I think I have it!

....

PageTitle = "Page" & j

With Backcheck.MultiPage1.Pages(PageTitle)
..Caption = "Whatever"

....
 

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