Change a caption for multipage

O

Oakleaf tech

I want to change the caption on a multiforms pages depending on the selection
made in a combo box on the userform.

The combobox is called DocumentCbx
The userform = InvoiceUserForm
The multipage = MultiPage1
the pagename = DocuDet
And the caption will vary depending the value of DocumentCbx

Here is the coding as far as I can manage it.

I did put in ???? where i am not sure what to do further

private Sub DocumentCbx_Change()
Dim DocumentDetails As String

If InvoiceUserform.DocumentCbx.Value = "tax invoice" Then
InvoiceUserform.MultiPage1.????????
Else

End If

End Sub

Thx
 
J

Jacob Skaria

Refer the index which starts from 0. For the first page

MultiPage1.Pages(0).Caption = DocumentCbx.Text

If this post helps click Yes
 
O

Oakleaf tech

That did the job!

Thx a million!

Jacob Skaria said:
Refer the index which starts from 0. For the first page

MultiPage1.Pages(0).Caption = DocumentCbx.Text

If this post helps click Yes
 

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


Top