Can No Longer Create a Toolbar

E

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
 
E

Ed

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
 

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

Similar Threads

Command Bars 1
Control Bars and Command Buttons?? 1
Temporary Toolbars 9
protect toolbar? 1
Toolbar Issue 4
Unable to make my custom toolbar 'float' in Excel 2007 6
Initializing a custom toolbar 3
Custom Toolbar 2

Top