cmdU1PA is an activex Button from controls toolbar, located on a worksheet.
cmdU1PA click event code:
Private Sub cmdU1PA_Click()
Application.ScreenUpdating = False
Range("U1P").Activate
For x = 1 To 7
frmAudit.MultiPage1.Page1.Caption = ActiveCell.Offset(x, 0)
Next x
Application.ScreenUpdating = True
frmAudit.Show
End Sub
MultiPage1 is on the Userform "frmAudit"
MultiPage1 has 7 pages Page1...Page7
The code above loops thru the 7 cells below the active cell named U1P.
Is there a way to get
frmAudit.MultiPage1.Page1.Caption = ActiveCell.Offset(x, 0)
to loop thru the pages 1 to 7, i.e. pageX ??
Thanks,
Chas
cmdU1PA click event code:
Private Sub cmdU1PA_Click()
Application.ScreenUpdating = False
Range("U1P").Activate
For x = 1 To 7
frmAudit.MultiPage1.Page1.Caption = ActiveCell.Offset(x, 0)
Next x
Application.ScreenUpdating = True
frmAudit.Show
End Sub
MultiPage1 is on the Userform "frmAudit"
MultiPage1 has 7 pages Page1...Page7
The code above loops thru the 7 cells below the active cell named U1P.
Is there a way to get
frmAudit.MultiPage1.Page1.Caption = ActiveCell.Offset(x, 0)
to loop thru the pages 1 to 7, i.e. pageX ??
Thanks,
Chas