Hi Jazzer, I plan on removing it soon anyway.
For anyone else coming here searching for a solution I used the following workaround. Instead of a message box for confirmation I used another Userform to ask for confirmation:
Private Sub MultiPage1_Change()
Dim Pg As MSForms.Page
Dim PageControls As Object
Dim num As Integer
If MultiPage1.Value = 8 Then
For Each Pg In MultiPage1.pages
If Pg.Visible = True Then
For Each PageControls In Pg.Controls
If TypeName(PageControls) = "ListBox" Then
If PageControls.ListCount <= 1 Then
Continue.Label4.Caption = Pg.Index
Continue.Label2.Caption = Pg.Caption
Unload Me
Continue.Show vbModal
Exit Sub
End If
End If
Next
End If
Next
End If
End Sub
and then the following code for the three Userform buttons "Yes", "No", "Cancel":
Public PageInd As Integer
Private Sub CommandButton1_Click()
Unload Me
Unload Estate
EstateV.Show vbModal
End Sub
Private Sub CommandButton2_Click()
Unload Me
Estate.MultiPage1.Value = PageInd
Estate.Show vbModal
End Sub
Private Sub CommandButton3_Click()
Unload Me
Estate.MultiPage1.Value = PageInd
Estate.Show vbModal
End Sub
Private Sub UserForm_Activate()
PageInd = CInt(Label4.Caption)
End Sub
Hope this helps someone else.
Bookmarks