Commandbar buttons not working in 2007

J

josepnewsgroups

Hi all,

I'm trying to use an addin designed for 2003 on powerpoint 2007.

The addin is basically a custom-made toolbar, some buttons call
specific procedures and some other buttons are simply powerpoint
commands that could be found in the standard menus; problem is that in
2007, some of the buttons that should call standard powerpoint
commands appear disabled (grayed out).

Some VBA code to understand better:
--
' Creates button with idButton (Powerpoint control id)
Set button = objCommandBars.Controls.Add(Type:=msoControlButton,
ID:=idButton)
--

I go through a list of several IDs to generate all buttons.
Some of the IDs that won't work:
ID: 664 'Align Left
ID: 164 'Group

Some of the IDs that work:
ID: 108 'Format Painter
ID: 111 'Apply Color Scheme

I have generated a list of all control IDs the ones I use have not
changed from 2003 to 2007.

Any idea on what is the problem?

Thanks,
J
 

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