Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default how to put a reference from a page of a multipage form to another page

Dear experts,
I have a multipage form, and I would like to put a button
on page 6 that redirects the user to page 4.
How can I achieve this?
Many thanks in advance!
Best regards,
Valeria
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default how to put a reference from a page of a multipage form to another page

On Sat, 24 Jan 2004 00:51:55 -0800, "Valeria"
wrote:

Dear experts,
I have a multipage form, and I would like to put a button
on page 6 that redirects the user to page 4.
How can I achieve this?


If I understand you correctly, you can do this:

- Put a command button on page 6.
- Double click on that button to open the code module, and that
command button's Click event.
- Put the following code in there. Change the control names to:
* The name of your user form; and
* The name of your multipage control. I've left the default names in
for illustration only.
DON'T change the value. It's 3 because the multipage index starts
counting from 0. (Page1 = 0, Page2 = 1 and so on.)

Private Sub CommandButton1_Click()

UserForm1.MultiPage1.Value = 3

End Sub


---------------------------------------------------------
Hank Scorpio
- Yes, yes, I know I've been missing for a while. Long story. And don't
ask what the size of my inbox is at the moment either... 8^
scorpionet who hates spam is at iprimus.com.au (You know what to do.)
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default how to put a reference from a page of a multipage form to another page

Many thanks,
that's exactly what I needed!
Kind regards,
Valeria

-----Original Message-----
On Sat, 24 Jan 2004 00:51:55 -0800, "Valeria"
wrote:

Dear experts,
I have a multipage form, and I would like to put a

button
on page 6 that redirects the user to page 4.
How can I achieve this?


If I understand you correctly, you can do this:

- Put a command button on page 6.
- Double click on that button to open the code module,

and that
command button's Click event.
- Put the following code in there. Change the control

names to:
* The name of your user form; and
* The name of your multipage control. I've left the

default names in
for illustration only.
DON'T change the value. It's 3 because the multipage

index starts
counting from 0. (Page1 = 0, Page2 = 1 and so on.)

Private Sub CommandButton1_Click()

UserForm1.MultiPage1.Value = 3

End Sub


---------------------------------------------------------
Hank Scorpio
- Yes, yes, I know I've been missing for a while. Long

story. And don't
ask what the size of my inbox is at the moment either...

8^
scorpionet who hates spam is at iprimus.com.au (You know

what to do.)
.

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 turn off page reference in page break preview Nic_Qld Excel Discussion (Misc queries) 2 June 3rd 09 07:17 PM
activate a page of a Multipage in Userform Jeff Excel Discussion (Misc queries) 1 February 8th 08 06:16 PM
Turning .xls form into web page EdLeeYoung Excel Discussion (Misc queries) 1 May 18th 05 03:56 AM
Enable/disable page on multipage Phillip Topping Excel Programming 3 November 24th 03 02:07 AM
Can I set a page of a Multipage form to active? John T Ingato Excel Programming 2 October 11th 03 12:15 AM


All times are GMT +1. The time now is 08:38 PM.

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

About Us

"It's about Microsoft Excel"