Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default Default multi page

Have read the other Q&A's on default multipage and still cant get it to work
Want to open on page 0, on open, here is code

Workbook opens and immediatly displays user form

Private Sub workbook_open()

MsgBox "Agree to confidentiality message"
Mymain.Show
'need to default to page 0 the first page
'mymain is name of user form
Mymain.MultiPage1.Value = 0
Mymain.MultiPage1.Pages(1).Visible = True

End Sub

Thanks in advance from australia

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default Default multi page

Perfect, when in doubt step through your code, Thanks, Bill

"OssieMac" wrote:


Set the Multipage value first before opening form

Mymain.MultiPage1.Value = 0 'Where zero is page1, 1 is Page 2 etc
Mymain.Show

--
Regards,

OssieMac


"Bill" wrote:

Have read the other Q&A's on default multipage and still cant get it to work
Want to open on page 0, on open, here is code

Workbook opens and immediatly displays user form

Private Sub workbook_open()

MsgBox "Agree to confidentiality message"
Mymain.Show
'need to default to page 0 the first page
'mymain is name of user form
Mymain.MultiPage1.Value = 0
Mymain.MultiPage1.Pages(1).Visible = True

End Sub

Thanks in advance from australia

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Default multi page

Hi again Bill,

Just a little extra info on the ShowModal property of a form. When set to
True, no code runs after the Show command until the form is closed. Also you
cannot access worksheets while the form is open.

If ShowModal is set to False then all the code runs and you can also access
cells on worksheets etc while the form is open.

ShowModal cannot be set with VBA code; only in the Properties dialog box.

--
Regards,

OssieMac


"Bill" wrote:

Perfect, when in doubt step through your code, Thanks, Bill

"OssieMac" wrote:


Set the Multipage value first before opening form

Mymain.MultiPage1.Value = 0 'Where zero is page1, 1 is Page 2 etc
Mymain.Show

--
Regards,

OssieMac


"Bill" wrote:

Have read the other Q&A's on default multipage and still cant get it to work
Want to open on page 0, on open, here is code

Workbook opens and immediatly displays user form

Private Sub workbook_open()

MsgBox "Agree to confidentiality message"
Mymain.Show
'need to default to page 0 the first page
'mymain is name of user form
Mymain.MultiPage1.Value = 0
Mymain.MultiPage1.Pages(1).Visible = True

End Sub

Thanks in advance from australia

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I e-mail 1 page of a multi page workbook Lynne Hicks Excel Discussion (Misc queries) 3 March 25th 10 12:58 PM
Default multi page OssieMac Excel Programming 0 April 17th 09 06:28 AM
Multi-Page Objects Activate Page Coby Excel Programming 2 April 9th 08 11:26 PM
Get header only on first page of multi page excel file betwms Excel Discussion (Misc queries) 3 March 29th 06 05:47 PM
Hide a page in a multi page userform Ian Mangelsdorf Excel Programming 1 October 27th 04 09:06 AM


All times are GMT +1. The time now is 08:34 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"