Word 2007 Activating the Add-ins tab via VBA code

Word 2007 Activating the Add-ins tab via VBA code

Post by Ed » Mon, 03 Dec 2007 20:27:00


I have written a routine which involves the creation of a new toolbar
(commandbar). In Word2003 and before, the command bar appears 'on top'
among the other toolbars. This is good.

When the same macro is run in Word2007, it hides behind the 'Add-ins' tab at
the top of the screen. (This is so even though I may set it to 'floating'.)
There, the command bar is apparent to noone, and therefore virtually
worthless.

Is there VBA code that can automatically activate the Word 2007 Add-ins tab
at
the end of a VBA module so that the user will be able to see the change and
the availability of the new toolbar?

(I have tried sending Alt-X via SendKeys at the end of the routine, but that
doesn't do the trick.)

Ed (in *** ia)
 
 
 

Word 2007 Activating the Add-ins tab via VBA code

Post by Mike » Tue, 04 Dec 2007 08:53:45


You need to ask this in a MSWord newsgroup. This newsgroup's for the full
Visual Basic product, not VBA in Office (or other) apps.

--
Mike
Microsoft MVP Visual Basic