Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Multipage Userform Events

Once again I crave the assistance of this group

Is there an event which I can use that will be triggered when, say page 3,
of a multipage form is displayed ?

Regards to all
and
TIA


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Multipage Userform Events

Try something like

Private Sub MultiPage1_Change()
If MultiPage1.SelectedItem.Index = 2 Then
MsgBox "third page selected"
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Once again I crave the assistance of this group

Is there an event which I can use that will be triggered when,
say page 3, of a multipage form is displayed ?

Regards to all
and
TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Multipage Userform Events

Many Thanks - works a treat
Once again this group has proved itself invaluable


"Chip Pearson" wrote in message
...
Try something like

Private Sub MultiPage1_Change()
If MultiPage1.SelectedItem.Index = 2 Then
MsgBox "third page selected"
End If
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Once again I crave the assistance of this group

Is there an event which I can use that will be triggered when, say page
3, of a multipage form is displayed ?

Regards to all
and
TIA





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Multipage Userform Events

I've never used a multipage form, but fooling with it I see that the Change
event fires when you switch pages. Interestingly, it doesn't fire when I
click a checkbox or enter text in a textbox. So maybe something like this:

Private Sub MultiPage1_Change()
MsgBox Me.MultiPage1.SelectedItem.Name
End Sub

Finally, as Kramer might say, "You crave, but do you yearn?"

hth,

Doug

"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Once again I crave the assistance of this group

Is there an event which I can use that will be triggered when, say page 3,
of a multipage form is displayed ?

Regards to all
and
TIA




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Multipage Userform Events

Thanks Doug but as you point out it runs even when changing between pages 1
& 2
To get it to work as I wanted I would have to test the SelectedItem.Name
using an If statement before running the code

The response from Chip is more elegant solution but many thanks for your
suggestion




"Doug Glancy" wrote in message
...
I've never used a multipage form, but fooling with it I see that the
Change
event fires when you switch pages. Interestingly, it doesn't fire when I
click a checkbox or enter text in a textbox. So maybe something like
this:

Private Sub MultiPage1_Change()
MsgBox Me.MultiPage1.SelectedItem.Name
End Sub

Finally, as Kramer might say, "You crave, but do you yearn?"

hth,

Doug

"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Once again I crave the assistance of this group

Is there an event which I can use that will be triggered when, say page
3,
of a multipage form is displayed ?

Regards to all
and
TIA








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Multipage Userform Events

I've pretty much resigned myself to being less elegant than Chip <g.

Doug

"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Thanks Doug but as you point out it runs even when changing between pages

1
& 2
To get it to work as I wanted I would have to test the SelectedItem.Name
using an If statement before running the code

The response from Chip is more elegant solution but many thanks for your
suggestion




"Doug Glancy" wrote in message
...
I've never used a multipage form, but fooling with it I see that the
Change
event fires when you switch pages. Interestingly, it doesn't fire when

I
click a checkbox or enter text in a textbox. So maybe something like
this:

Private Sub MultiPage1_Change()
MsgBox Me.MultiPage1.SelectedItem.Name
End Sub

Finally, as Kramer might say, "You crave, but do you yearn?"

hth,

Doug

"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Once again I crave the assistance of this group

Is there an event which I can use that will be triggered when, say page
3,
of a multipage form is displayed ?

Regards to all
and
TIA








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Multipage Userform Events

Me too .... but I console myself with the words of Gen. Lee Butler

"However haltingly, we have made some progress."

<g




"Doug Glancy" wrote in message
...
I've pretty much resigned myself to being less elegant than Chip <g.

Doug

"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Thanks Doug but as you point out it runs even when changing between pages

1
& 2
To get it to work as I wanted I would have to test the SelectedItem.Name
using an If statement before running the code

The response from Chip is more elegant solution but many thanks for your
suggestion




"Doug Glancy" wrote in message
...
I've never used a multipage form, but fooling with it I see that the
Change
event fires when you switch pages. Interestingly, it doesn't fire when

I
click a checkbox or enter text in a textbox. So maybe something like
this:

Private Sub MultiPage1_Change()
MsgBox Me.MultiPage1.SelectedItem.Name
End Sub

Finally, as Kramer might say, "You crave, but do you yearn?"

hth,

Doug

"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Once again I crave the assistance of this group

Is there an event which I can use that will be triggered when, say
page
3,
of a multipage form is displayed ?

Regards to all
and
TIA










  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default Multipage Userform Events

Me too .... but I console myself with the words of Gen. Lee Butler

"However haltingly, we have made some progress."

<g




"Doug Glancy" wrote in message
...
I've pretty much resigned myself to being less elegant than Chip <g.

Doug

"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Thanks Doug but as you point out it runs even when changing between pages

1
& 2
To get it to work as I wanted I would have to test the SelectedItem.Name
using an If statement before running the code

The response from Chip is more elegant solution but many thanks for your
suggestion




"Doug Glancy" wrote in message
...
I've never used a multipage form, but fooling with it I see that the
Change
event fires when you switch pages. Interestingly, it doesn't fire when

I
click a checkbox or enter text in a textbox. So maybe something like
this:

Private Sub MultiPage1_Change()
MsgBox Me.MultiPage1.SelectedItem.Name
End Sub

Finally, as Kramer might say, "You crave, but do you yearn?"

hth,

Doug

"SA3214 @Eclipse.co.uk" <sa3214<No Spam wrote in message
...
Once again I crave the assistance of this group

Is there an event which I can use that will be triggered when, say
page
3,
of a multipage form is displayed ?

Regards to all
and
TIA











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
Userform, multipage, select a tab Jos Vens[_2_] Excel Programming 2 February 28th 05 04:11 PM
Problems with the userform multipage Wilbo Excel Programming 0 October 19th 04 09:46 AM
Problems with the userform multipage Wilbo Excel Programming 1 October 19th 04 09:09 AM
Events for Controls in a Multipage Control George[_18_] Excel Programming 4 February 18th 04 05:56 PM
MultiPage UserForm Michael J. Malinsky Excel Programming 2 July 16th 03 01:02 PM


All times are GMT +1. The time now is 05:36 PM.

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"