Word file with a custom floating toolbar (commandbar) to dl?

  • Thread starter StargateFanFromWork
  • Start date
S

StargateFanFromWork

I've looked and looked and it seems better to try to find an actual example.
I know how to work with commandbars in Excel and it'll be too confusing
until I see an actual example. However, several searches haven't yielded
any, never mind a good, example of a Word doct. with a floating toolbar and
example "dummy" or example coding to go with it (i.e., buttons that do
nonsense things like bold a word just so we see how commandbar interacts
with vb code in the vbe).

I'd sure appreciate any help to get me started. I'm addicted to them in
Excel where I use them whenever new sheets are inserted because I used
embedded graphics as buttons before that would increase the size of the file
almost exponentially until I figured out a commandbar alternative <g>. Hope
to do something similar in Word though for different reasons.

TIA.! :eek:D
 
C

Cindy M.

Hi StargateFanFromWork,

I must admit, I can't figure out what you're asking. The CommandBar object
model is the same as Word as it is in Excel, with the added bonus that you can
save a custom commandbar in a document or template. And you can save changes to
any commandbar in a document or template.

The object model for VBA is exactly the same for Word as Excel, with the
exception you should always specify Application.CustomizationContext to tell
Word *where* you want to save the changes you're making.
I've looked and looked and it seems better to try to find an actual example.
I know how to work with commandbars in Excel and it'll be too confusing
until I see an actual example. However, several searches haven't yielded
any, never mind a good, example of a Word doct. with a floating toolbar and
example "dummy" or example coding to go with it (i.e., buttons that do
nonsense things like bold a word just so we see how commandbar interacts
with vb code in the vbe).

I'd sure appreciate any help to get me started. I'm addicted to them in
Excel where I use them whenever new sheets are inserted because I used
embedded graphics as buttons before that would increase the size of the file
almost exponentially until I figured out a commandbar alternative <g>. Hope
to do something similar in Word though for different reasons.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
S

StargateFanFromWork

Cindy M. said:
Hi StargateFanFromWork,

I must admit, I can't figure out what you're asking. The CommandBar object
model is the same as Word as it is in Excel, with the added bonus that you
can
save a custom commandbar in a document or template. And you can save
changes to
any commandbar in a document or template.

The object model for VBA is exactly the same for Word as Excel, with the
exception you should always specify Application.CustomizationContext to
tell
Word *where* you want to save the changes you're making.

Sorry, I just saw that I missed your post. All's well that ends well, I
figure out how to make a floating command bar in Word, too. I don't know
how to explain this properly, perhaps, but in Word, the command bar was easy
to create. It was actually physical. One creates the toolbar then drags
the macros to it, etc. In Excel, at least the way I was taught over at the
programming Excel ng, the floating commandbar is all built via vb code. To
me, the two programs have 2 very distinct ways of building a floating bar.
Granted, now that I have a working model from which to work from, I can now
extremely easily set a floating toolbar up in Excel with absolutely no
problems whatsoever, but Word is definitely a heck of a lot easier as it's
just easy to create one by pressing a couple of buttons then dragging macros
onto it that we've created. I don't know of any way to do the same in
Excel.

But again, moot point now as I've created a few Word docts. easily now.

Thanks. Appreciate all the great help! :eek:D
 

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