Activate or select Userform Page 1. HELP!

pedie

Well-known Member
Joined
Apr 28, 2010
Messages
3,875
:)Hi!

Below is my current code:
I cant see my controls in page1 untill i manually click on it...
is there a to make it click or show my button[controls] as it starts up?


Thanks for hellping!:)
Code:
[/FONT]
[FONT=Courier New]Private Sub UserForm_Initialize()
 DISALL
 Me.MultiPage1.Value = 0
 Me.MultiPage1.Pages(0).Enabled = True
 Me.Repaint 
End Sub
Sub DISALL()
Me.MultiPage1.Pages(0).Enabled = False
Me.MultiPage1.Pages(1).Enabled = False
Me.MultiPage1.Pages(2).Enabled = False
Me.MultiPage1.Pages(3).Enabled = False
End Sub
[/FONT]
[FONT=Courier New]
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
I'm guessing that since Page(0) is disabled at the time the line MultiPage.Value = 0 is not doing anything.

Switching the order of the lines fixed it for me
Code:
Private Sub UserForm_Initialize()
    Call DissAll
    With MultiPage1
        .Pages(0).Enabled = True
        .Value = 0
    End With
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,589
Messages
6,179,744
Members
452,940
Latest member
rootytrip

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top