suping up Word's divisions

T

Tom_OM

They say a picture is worth a k'zillion words (or something to that
effect), so here's my picture:
http://www.renamestar.com/wordproshots/wordprodivisions.htm
It's a screen shot of Lotus Word Pro's division feature. Every time I
use Word, I miss this feature like crazy. It feels like having one
hand tied behind my back. I've already plugged in via VBA four Word
Pro features that I wouldn't want to be without, and this one (the
most challenging one) remains.

Word has divisions, but lacks the ability to put the folder-like tabs
(that you can see in my screen shot) at the top that you can simply
click on to go to a division of the document.

I've been experimenting with the VBA IDE, and it looks like my best
bet is to use the tab strip control in a way that allows the runtime
creation of tabs that correspond to each division in a document.
Sound strategy?

I'm wondering about a few things. In regular VB 6, to use the tab
strip control, you need to choose Components from the Project menu and
then choose Microsoft Tabbed Dialog Control 6.0 (SP5). In other
words, you need to use that ActiveX control. However, in the VBA IDE
I couldn't help but notice that this component is already available in
the toolbox. Does this mean I'm not going to need to package the
ActiveX control if I distribute this add-in to someone else? Is the
VBA tab strip fundamentally different from the VB 6 one? I looked the
control up in my O'Reilly VB in a Nutshell book and wonder if the
material applies completely. I just ordered off for another Nutshell
control book, this one that purports to be about both VB and VBA (the
one by Paul Lomax). I'm hoping it clues you in on distinctions
between the two languages.

I'm also wondering about how I'm going to attribute each tab to a
section in the document. I'm thinking of using named bookmarks. Good
idea?

And what about putting those tabs into a tool bar? I've used the VB
tool bar extensively, but never ventured to using the cool bar, the
one that I think is dockable if I remember right. Is the cool bar the
way to go? Can I even use it at all in VBA?

I'm grateful for any help offered.
 
J

Jezebel

Don't worry about how to distribute this. You've got a heap of serious
and -- to my mind, insoluble -- problems to deal with long before you get to
that. For starters, where do you intend to put your tabstrip? You can't put
it in UserForm (which is what VBA is expecting) because then you can't work
on the document while the tabstrip is showing; and you can't put it in the
document, because that won't provide the functionality you're aiming for.
And there ain't nowhere else to put it.

I think you're trying to make a silk purse out a of sow's ear. Word is what
it is. There are a lot of ways to work with it; but working *against* it
like this ... well, life's too short.
 
H

Helmut Weber

Hi Tom,

to me a menu bar with names or numbers of sections would,
admittedly, not look a nice as that Wordpro Tabstrip,
but fullfil the same purpose.
Or a dropdown list in a commandbar with the sections.

It would even be possible to add a new item
to the menu bar or the dropdown list programmatically,
admittedly again, requiring some user interaction.

Or a modeless userform,
with offering whatever you want.

Zillions of workarounds, but workarounds they will be.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
T

Tom_OM

I'm not giving up. I believe it's worth the effort to find a way to
make this work. I've already succeeded in making the other four Word
Pro features work in Word, and I miss this one too much to give up
without applying my creative power. Navigating divisions in Word Pro
is WAY easier than in Word. There's no comparison. Unfortunately,
Word Pro is orphaned and won't see any more development. That means I
won't be able to enjoy a bunch of great features added to Word XP/03
that I really like and miss if I keep working in Word Pro. So I'm
going with the old Burger King "Have it your say" approach and finding
a way to make this, or something similar, happen.

I was initially planning to make the tab strips either a floating
toolbar set to "always on top" or a docked one. However, I believe
I've found a work-around that doesn't require any tabs, ActiveX
controls, DLLs or "always on top" tool bars. It's not identical to
Word Pro's feature, but just as easy to use. I think this will work.
I'll keep you posted.

cheers,
Tom
 
I

Ian B

Hi Tom

With a bit of artistic work, using the field "MacroButton" in a single row
table could be made to emulate the tab strips, maybe going to a separate
section of the document.

HTH

Ian B
 

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

Top