vba - using multipage

  • Thread starter Thread starter ajliaks
  • Start date Start date
A

ajliaks

Hi all,

I am using a multipage.
When I choose page2 in multipage, I want to show the messag
"Activating Page 2".

I am trying something like this, but I get error:

Private sub Multipage1_Change
if multipage.page.item ("Page2) = true then
msgbox "Activating Page 2"
end if
End sub

Thanks in advance.
Aldo
 
Hello Alod
MsgBox "Activating page " & MultiPage1.Value + 1

HTH
Cordially
Pascal
 
Private Sub MultiPage1_Change()
Me.Caption = "Activating " & _
MultiPage1.Pages(MultiPage1.Value).Caption
End Sub

HTH. Best wishes Harald
 
Hi Aldo,

try this:

Private Sub Multipage1_Change
'the .Value property of Multipage object start from 0 (=first page)
if Me.Multipage1.Value = 1 Then MsgBox "Activating Page 2"
End sub

Greetings,
Michael
 

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