Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Can No Longer Create a Toolbar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ed - 06 Jan 2006 23:43 GMT
Something that happened that prevents me from creating a temporary toolbar:

I use the following code:
Set mybar = CommandBars.Add(Name:="Custom1", Position:=msoBarFloating, _
   Temporary:=True)

I get the error msg Method "Add" of object 'CommandBars' failed.

I have even tried to add a toolbar manually, but it doesn't appear on the
screen or in the toolbar list.

Weird. I have restarted Word to no avail. Any suggestions?

Thanks, as always.

Ed
Ed - 07 Jan 2006 12:07 GMT
I am probably getting closer to knowing what the problem is.

I can no longer create any type of new control via VBA. I am trying to
create a Assistant Balloon and get the same error. It says:

Method "Add" of object 'Balloon' failed.

When I click Help, I am taken to Automation Error (440) and the text talks
about Automation Objects.

Obviously something is corrupted. (When I run the same VBA program on a
separate computer, everything runs like clockwork, so it is not the program
itself.)

Is it likely ActiveX. Should I reinstall ActiveX? Any other suggestions?

Many Thanks, --Ed

Something that happened that prevents me from creating a temporary toolbar:
I use the following code:
Set mybar = CommandBars.Add(Name:="Custom1", Position:=msoBarFloating, _
   Temporary:=True)

I get the error msg Method "Add" of object 'CommandBars' failed.

I have even tried to add a toolbar manually, but it doesn't appear on the
screen or in the toolbar list.

Weird. I have restarted Word to no avail. Any suggestions?

Thanks, as always.

Ed
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.