Multipage control help

R

Robert Crandal

I am using a "Multipage" control on top of my Userform and
I need help understanding the difference between the following
associated events: "Change()" vs "Layout"

Each time someone presses one of the tabs of the "Multipage"
control, it appears that both "Multipage1_Change()" and
"Multipage1_Layout()" events get called. I just need help
understanding each event.

thank you!
 
D

Dave Peterson

Highlight just the word Layout in the procedure statement. Click F1. Choose
the MSForms option.

And do the same with the word Change in the other procedure statement.

You'll soon see the difference.

But I don't get the same behavior when I change pages (xl2003). I only see the
_Change event fire.
 
R

Robert Crandal

Ok.... the Change() event for a Multipage control makes sense to
me. The Layout() event is said to occur when the layout of
the Multipage control "changes sizes". As far as I know, I
didn't change the size of anything, I merely just clicked on a new
page. Each multi-page is also blank (ie, nothing on top), so
what is changing sizes?

Thank u Dave!
 
D

Dave Peterson

I don't know.

In my limited testing, that event only fired when I loaded the userform. It
didn't fire when I changed multipages.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top