+ Reply to Thread
Results 1 to 4 of 4

Multipage Activex Control - How do I Embed Code in each Page?

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    new york city
    MS-Off Ver
    Excel 2010
    Posts
    24

    Multipage Activex Control - How do I Embed Code in each Page?

    Hi,

    I have added an ActiveX Control called 'Microsoft Forms 2.0 Multipage'. I'd like to know whether or not you can embed code in each Page item, such that if an event occurs (click 'Page1' in the Multipage control), then a piece of code is executed. The code I have in mind is to activate another worksheet within the same workbook. I can easily do this by creating a Command Button control, but I prefer the look and feel of the Multipage control. Is this possible? It looks like all the Events (MutliPage1_Click) are only available at the Multipage Control level and not at the individual Page level within the Multipage control.

    Thanks!

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Multipage Activex Control - How do I Embed Code in each Page?

    Hello vba_beginner,

    The MultiPage control is a container object that holds a Pages collection object that contains individual Page objects. The Pages and Page objects have no events, only the MultiPage Object does.
    You would need to write your code in the MultiPage object module to respond to the Page being selected. The code can not be contained within a Page.

    MultiPage Events
    • AddControl
    • BeforeDragOver
    • BeforeDropOrPaste
    • Change
    • Click
    • DblClick
    • Error
    • KeyDown
    • KeyPress
    • KeyUp
    • Layout
    • MouseDown
    • MouseMove
    • MouseUp
    • RemoveControl
    • Scroll
    • Zoom
    Last edited by Leith Ross; 07-10-2013 at 02:08 PM. Reason: Corrected Spelling
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    04-15-2013
    Location
    new york city
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Multipage Activex Control - How do I Embed Code in each Page?

    Thank you for the concise answer, Leith!

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Multipage Activex Control - How do I Embed Code in each Page?

    Hello vba_beginner,

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1