ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   No Multipage pages are active on startup (https://www.excelbanter.com/excel-programming/379047-no-multipage-pages-active-startup.html)

prahz

No Multipage pages are active on startup
 
Hi:

If someone with more experience could help, then that would be greatly
appreciated...

I have created a Multipage ("multipage1") in my user form. multipage1
has two pages in it: "page1" and "page2," whose .Index values are 0 and
1, respectively. multipage1.Value is set to 0.

When I run my form on startup, neither of the pages become active. It
simply shows the two tabs at the top with a blank page. The user has
to click on one of the tabs for one of the pages to become active. I
want page1 to be active when the form loads.

I have tried this in my userform_Inititialize():
multipage1.Value = 0 but that does not seem to do anything.

Can someone please tell me what I am missing?


[email protected][_2_]

No Multipage pages are active on startup
 
I can't say as though I have a whole lot of experience, but I have used
similar code in other programs I have written.

'set the multipages to the second page
Me.mulAdmin.Value = 1

and it works for me. I would recommend putting that code
"multipage1.Value = 0" in the immediate window to see what error comes
up if any. I would also recommend trying other values. See if you can
set it to 1 to bring up the second page, also throw a "me." infront of
it to make sure that you are using the correct name.

Hope that helps.

theSquirrel



prahz wrote:
Hi:

If someone with more experience could help, then that would be greatly
appreciated...

I have created a Multipage ("multipage1") in my user form. multipage1
has two pages in it: "page1" and "page2," whose .Index values are 0 and
1, respectively. multipage1.Value is set to 0.

When I run my form on startup, neither of the pages become active. It
simply shows the two tabs at the top with a blank page. The user has
to click on one of the tabs for one of the pages to become active. I
want page1 to be active when the form loads.

I have tried this in my userform_Inititialize():
multipage1.Value = 0 but that does not seem to do anything.

Can someone please tell me what I am missing?



[email protected][_2_]

No Multipage pages are active on startup
 
I can't say as though I have a whole lot of experience, but I have used
similar code in other programs I have written.

'set the multipages to the second page
Me.mulAdmin.Value = 1

and it works for me. I would recommend putting that code
"multipage1.Value = 0" in the immediate window to see what error comes
up if any. I would also recommend trying other values. See if you can
set it to 1 to bring up the second page, also throw a "me." infront of
it to make sure that you are using the correct name.

Hope that helps.

theSquirrel



prahz wrote:
Hi:

If someone with more experience could help, then that would be greatly
appreciated...

I have created a Multipage ("multipage1") in my user form. multipage1
has two pages in it: "page1" and "page2," whose .Index values are 0 and
1, respectively. multipage1.Value is set to 0.

When I run my form on startup, neither of the pages become active. It
simply shows the two tabs at the top with a blank page. The user has
to click on one of the tabs for one of the pages to become active. I
want page1 to be active when the form loads.

I have tried this in my userform_Inititialize():
multipage1.Value = 0 but that does not seem to do anything.

Can someone please tell me what I am missing?



prahz

No Multipage pages are active on startup
 
thanks that helped!

wrote:
I can't say as though I have a whole lot of experience, but I have used
similar code in other programs I have written.

'set the multipages to the second page
Me.mulAdmin.Value = 1

and it works for me. I would recommend putting that code
"multipage1.Value = 0" in the immediate window to see what error comes
up if any. I would also recommend trying other values. See if you can
set it to 1 to bring up the second page, also throw a "me." infront of
it to make sure that you are using the correct name.

Hope that helps.

theSquirrel



prahz wrote:
Hi:

If someone with more experience could help, then that would be greatly
appreciated...

I have created a Multipage ("multipage1") in my user form. multipage1
has two pages in it: "page1" and "page2," whose .Index values are 0 and
1, respectively. multipage1.Value is set to 0.

When I run my form on startup, neither of the pages become active. It
simply shows the two tabs at the top with a blank page. The user has
to click on one of the tabs for one of the pages to become active. I
want page1 to be active when the form loads.

I have tried this in my userform_Inititialize():
multipage1.Value = 0 but that does not seem to do anything.

Can someone please tell me what I am missing?




All times are GMT +1. The time now is 07:56 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com