Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-17-2022, 04:07 PM
grNadpa grNadpa is offline is Multipage or Tab Strip the right tool? Windows 10 is Multipage or Tab Strip the right tool? Office 2016
Advanced Beginner
is Multipage or Tab Strip the right tool?
 
Join Date: Mar 2022
Posts: 46
grNadpa is on a distinguished road
Default is Multipage or Tab Strip the right tool?


I want to combine three word projects and one spreadsheet into a single user experience. I thought Multipage was the ticket, but I am unable to initiate any sub by clicking any of the named tabs.

Ideally when the user invokes the word document, the user will see four tabs: "Vendor List", "Partial Waiver", "Final Waiver" and "Notary". The "Vendor List" invokes a spreadsheet. The other three invoke separate word 2016 document templates I've developed. The user should be able to select any tab, and in any any order.

Never had a need for Multipage or a tab strip before. Cannot get them to work the way I expect. Clicking on the tab itself does nothing. The tutorials I've read use either the form activate() event or an action somewhere within the Excel spreadsheet. (I cannot find anything for a word document.)

Is the Multipage or Tab Strip control the proper approach? Or is there a better option
Reply With Quote
  #2  
Old 03-18-2022, 10:23 AM
Charles Kenyon Charles Kenyon is offline is Multipage or Tab Strip the right tool? Windows 10 is Multipage or Tab Strip the right tool? Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,470
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I've only used MultiPage once, but the idea is to have separate pages -- dialog boxes -- in the userform for each tab. The old wizards were multi-page userforms.

You need to set actions in your userform for the click event for each control. Is your userform going to be set to be modeless?

Here is my Add-In that uses the MultiPage. Bar Code Add-In You are welcome to examine the code. (Note, the Add-In is not really functional, but the tabs work.)

Take a look at:
Reply With Quote
  #3  
Old 03-19-2022, 06:20 AM
grNadpa grNadpa is offline is Multipage or Tab Strip the right tool? Windows 10 is Multipage or Tab Strip the right tool? Office 2016
Advanced Beginner
is Multipage or Tab Strip the right tool?
 
Join Date: Mar 2022
Posts: 46
grNadpa is on a distinguished road
Default Your multipage triggers, mine doesn't

Thank you Charles Kenyon

How did you get your page tabs to trigger an event?

I downloaded your code and find that the setting for my multipage properties are the same as yours. But clicking on the tab on yours triggers an event. Mine does not.

I was unable to run the application through the developer window, so do am not able not see what event gets triggered. Nor do I find any reference in the code for "Page".

Your code does work the way I envisioned mine to work. Being self-taught, there's clearly a fundamental concept I'm missing.

My Plan B is to use layer forms (subforming?) to see if I can achieve the same result.
Reply With Quote
  #4  
Old 03-19-2022, 07:22 AM
Charles Kenyon Charles Kenyon is offline is Multipage or Tab Strip the right tool? Windows 10 is Multipage or Tab Strip the right tool? Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,470
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

My control is a Multi-Page. The tabs just trigger moving to the page for the tab and that is a part of the control. No special code is needed. Take a look at the properties for each page.

When editing the form, I can add a page by right-clicking at the top of the MultiPage control. That page becomes visible by clicking on the tab at the top for the page. This is a function of the control itself.

The MultiPage control gives a completely separate dialog page with its own controls. On mine, the MultiPage control is covering only part of the form with some controls being visible no matter what page is being displayed. The underlying code for the userform can respond to the controls on all the pages, so you can use it for sequential settings.
Here is another page from Microsoft. MultiPage control | Microsoft Docs
Most of the writing on the web is about Excel vba, but for forms, I think it is pretty much the same.
Here is a Stack Overflow question on using code to switch pages: excel - How to select/open a page available under a Multipage (Userform) using VBA code - Stack Overflow
Reply With Quote
  #5  
Old 03-19-2022, 07:37 AM
grNadpa grNadpa is offline is Multipage or Tab Strip the right tool? Windows 10 is Multipage or Tab Strip the right tool? Office 2016
Advanced Beginner
is Multipage or Tab Strip the right tool?
 
Join Date: Mar 2022
Posts: 46
grNadpa is on a distinguished road
Default Must provide at least one control on a page

When I put a control on one of the multipage tabs, it activated both of them.

One of those famous Microsoft "Undocumented Features". But, then, who but me would try testing out the control with nothing on it?

(The properties are fine.)

Thanks for your followup, Charles Kenyon
Reply With Quote
Reply

Tags
multipage, tab strip, vba editor



Similar Threads
Thread Thread Starter Forum Replies Last Post
stop multipage dispaying etaf Word 0 12-18-2018 12:30 AM
strip characters from the right jon.fallows@sedgman.com Excel 3 05-09-2018 11:38 PM
Headers on a multipage document gridley1982 Word 3 11-15-2016 02:50 AM
is Multipage or Tab Strip the right tool? Strip lf/cr from text p3aul Word 9 08-18-2009 12:42 AM
Multicolumn Multipage makaveli89 Word 0 11-10-2008 11:52 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft