+ Reply to Thread
Results 1 to 15 of 15

Multipage control help

  1. #1
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48

    Question Multipage control help

    Hi all. I am creating a bar inventory/"numbers" sheet for a corporation. I have been searching on and off for a week or so to find an answer or a tutorial on what I am looking to implement into this worksheet. I want to take a userform, with a multipage control, and have the control for each tab, show me a different part of the worksheets. For instance, the first tab would be inventory, the second tab would be ordering, the third tab would be weekly numbers, etc ... I am wondering how to "add ranges to the multipage control in order to make it a "viewer". I have found tutorials on how to print, enter info into the form and save it to the sheets using a button, but I can't find a tutorial on how to implement the control on how to make tabs show the ranges. Can someone point me in the right direction on a tutorial, or maybe if willing a small spreadsheet with a mulitpage control on it, showing how to add the ranges from different worksheets? I appreciate any help in advance. 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,259
    Hello Desk.Doc,

    Can you explain more about what you mean "show ranges"?

    Thanks,
    Leith Ross

  3. #3
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48
    No prob. Thanks for the reply Leith! What I am looking to do is take a userform, and add a multipage control.(This is can do) With the multipage control, I would like to be able to have different tabs on it. (This I can do) What I am trying to take the tabs, each labeled for a different worksheet, and have the worksheet "viewable" on the tab. I am not sure how to implement this action. For instance, the first tab on the multipage control will be inventory. When this tab is selected, I am looking for the tab to show the worksheet it's associated with. The second tab on the multipage control will be Order. This too will be associated with the corresponding worksheet. I can parse the sheet to select the cells I want to view, but I can't find out how to show the worksheet on the tab. I hope this explanation helps. Thank you!

  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,259
    Hello Desk.Doc,

    Thanks for the reply. That clears things up for me. I thought you might be talking about having the worksheet or part of it on the MutiPage control. I am guessing you want this to be interactive as well? Let me know.

    Sincerely,
    Leith Ross

  5. #5
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48
    If it's possible to do so, I would like for it to be interactive. I have been looking for a tutorial or example on this, but I haven't been able to find anything. Will you point me in a direction?

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

    You can easily place a static view of the worksheet or a range onto the MultiPage. Unlike VB, VBA doesn't support muliple document interface. Which means we can't display it like a window on the MultiPage. However, it may be possible through code to use OLE (Object Linking and Embedding) to create a container on the UserForm. Since I have never done this in VBA, I'll have to research it.

    Sincerely,
    Leith Ross

  7. #7
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48
    Thanks again Leith. I get what you are saying. I wasn't sure if it was possible to do this. Is there a tutorial or example on how to do this static. And if you do this static, I assume it's possible to select a certain range to be displayed. Thank you for your time today. I appreciate it!

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You are possibly looking for the OWC Spreadsheet Control, not simple to code.

    See Dennis Wallentin's article

    http://www.excelkb.com/article.aspx?...6&cNode=1U5J4S
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  9. #9
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48
    Thanks for you time today Leith. Is there a tutorial on how to do this with a static view? I am estimate that you can also select certain ranges to be viewed instead of the entire worksheet.

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

    Let me put together an example workbook for you. You can then use the code as a guide. It's easier to see it in a workbook than make several posts to show the code and where it goes. I'll post back later today.

    Sincerely,
    Leith Ross

  11. #11
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48
    Leith: Thanks for your time on this. The help you are willing to give is more than I can ask for. THANK YOU!

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

    You're welcome. Glad to help out.

    Sincerely,
    Leith Ross

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

    The attached workbook has a working example of showing a selected range (7 columns x 25 rows max) on a MultiPage control. You can either type the range in or click the button on the far right of the RefEdit control to select the range using the mouse. To bring up the UserForm run the macro "Run" using the Macro Dialog box (ALT+F8).

    Sincerely,
    Leith Ross
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-11-2007
    Location
    Orlando, Florida
    Posts
    48
    Leith, thank you for the example. Is the max you can show on the form 7x25? Or is this just an example? I don't need to view more on the userform, just asking a question. Your time and energy are more than greatly appreciated. Thank you.

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

    You could expand the size of the viewing area beyond 7 x 25 if you needed to or reduce it. It all depends on your program's needs , and of course the available space you have on the MultiPage control. I choose this size just as an example. If you have any questions about the code, or want to make changes, let me know.

    Sincerely,
    Leith Ross

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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