+ Reply to Thread
Results 1 to 4 of 4

Adding controls in Activex Multi page

  1. #1
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Adding controls in Activex Multi page

    Dear All,

    I hope you are all well.

    I am having some issues on adding controls on a Multi page (Activex) embedded in a worksheet.

    Every time I add a control (Command Button or even a Check Box) it won't stay inside the page I want. Instead, it stays outside de Multi page as soon I disable the "Design Mode" button.

    There's something I am doing wrong but I can't manage to add anything inside the Multi page.

    Any suggestions will be highly appreciated.

    Best regards,
    Filipe Oliveira

  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,259

    Re: Adding controls in Activex Multi page

    Hello pipoliveira,

    1) On the Ribbon click Developer > Design Mode
    1) Right Click the MultiPage object.
    2) Select MultiPage Object > Edit from the context menu.
    3) Right click the MutiPage object.
    4) Select Toolbox... from the context menu.
    5) Select the control you want to add.

    For these controls to perform some task when clicked, you will need to Subclass them.
    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
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Re: Adding controls in Activex Multi page

    Hi Leith,

    Thanks for your assistance.

    It works now. I always worked with User Forms and never with Activex controls such as Multipage, so I was a bit confused on how to add controls into it.

    Your help was amazing. Highly appreciated for it.

    Thanks a million.
    Filipe Oliveira

  4. #4
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Re: Adding controls in Activex Multi page

    Hi Leith,

    Just one more thing if you can assist. How to add a code to a control? Normally in a User Form you just double click and the VBA editor opens for that control. Here, double clicking does not open the VBA Editor. Should the code be inside the multipage VBA editor? Maybe is what you mentioned as Subclass but cannot understand how to subclass them.

    As for an example, let's say I have a command button (CommandButton1) inside the MultiPage1 (Page1). I want to have a code as when I click it, it activates the Sheet2.

    On a normal user form the code is simple
    Please Login or Register  to view this content.
    .

    Can you please provide an example of the code or where this code can be added?

    Your help was amazing. Highly appreciated for it.

    Thanks a million.
    Filipe Oliveira

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Excel VBA - Dynamically Adding a Page to a Multi-Page UserForm
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 116
    Last Post: 12-13-2012, 05:26 PM
  2. Multiple Controls on a multi-page userform
    By dssrun209 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-11-2010, 11:48 AM
  3. Multi-Page userform controls
    By blue9244 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-16-2008, 03:02 PM
  4. [SOLVED] Adding controls to each page in a multipage form
    By michael fuller in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-13-2006, 05:50 PM
  5. [SOLVED] ActiveX Controls vs Form Controls
    By Alex in forum Excel General
    Replies: 1
    Last Post: 01-11-2006, 04:50 AM

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