Group: microsoft.public.word.vba.general
From: "Julian"
Date: Sunday, February 24, 2008 7:56 AM
Subject: Re: Disappearing Commandbar buttons

"Tony Jollans" > My best guess would be that the original customization and
the latest one
> adding the two new buttons had different contexts - in other words were
> stored in different templates or documents.

Thanks - that's an interesting idea... however, all controls (on this bar)
were created by Customizing the toolbar in Word itself (not by adding
controls in VBA) and so should have been in the Normal template context, and
I've just inspected the commandbar controls and they all seem to belong to
Normal...

The only thing I am doing with these buttons is turning them on and off
alternately (visible true/false) to create a crude animation...

Worth pointing out that when they both disappear from the commandbar
controls collection, at least one is still visible on the command bar itself
(the other one probably still being invisible but "present")

Odd! What's your second best guess?

--
Julian I-Do-Stuff

Some Vista stuff, but mostly just Stuff at http://berossus,blogspot.com

> "Julian" wrote in message
> news:eCULp%23VdIHA.2268@TK2MSFTNGP02.phx.gbl...
>> [Word 2002/XP] I have a custom command bar with many buttons... but the
>> two most recently added (invoking trivial macros) seem to disappear from
>> the Controls collection even though they are still visually present on
>> the command bar itself... (Word has been restarted since the original
>> customisation)
>>
>> It only seems to happen after the VBA IDE has complained about a compile
>> error though... and all the other buttons are fine...
>>
>> Any ideas?
>>
>> NB - when I say they disappear from the Controls collection I mean that
>> having iterated through all of them they just aren't there anymore, not
>> that e.g. the referencing "name" has been corrupted
>>
>> --
>> Julian I-Do-Stuff
>>
>> Some Vista stuff, but mostly just Stuff at http://berossus,blogspot.com

Safety Articles | Usenet Groups | Usenet News | Bluegrass