PDA

View Full Version : PowerPoint 2010 problem



Sandi69
10-06-2011, 07:32 AM
CommandBars.FindControl(Id:=139).Executeworks fine

CommandBars.FindControl(Id:=1177).Executedoesn't work

CommandBars.FindControl(Id:=1226).Executedoesn't work


... but only in Office 2010.

Why ?

How can I make it work ?

regards,
Sandi

FB_Addon_TelNo{ height:15px !important; white-space: nowrap !important; background-color: #0ff0ff;}

John Wilson
10-06-2011, 12:11 PM
They are all legacy calls from previous versions that may or may not be present in 2010.

If you say what you want them to do we may be able to give you updated versions.

Sandi69
10-06-2011, 03:19 PM
I want to open a msoShapeLineCallout3

Thanks for answering ;-)

John Wilson
10-06-2011, 11:58 PM
I don't think that command bar is available in 2010. If it was, the format would be:
Application.CommandBars.ExecuteMso("name of bar")

Sandi69
10-07-2011, 07:47 AM
I don't think that command bar is available in 2010. CommandBars.FindControl(Id:=139).Execute works fine in 2010.


If it was, the format would be:
Application.CommandBars.ExecuteMso("name of bar")Which name should I try ?


<strange, automatically generated text ON>FB_Addon_TelNo{ height:15px !important; white-space: nowrap !important; background-color: #0ff0ff;}

John Wilson
10-07-2011, 08:02 AM
Hey if it works your good to go.

The reason for using the new method is it's much easier to figure out the names (assuming thay exist of course)

I think in this case:

CommandBars.ExecuteMso ("TextBoxInsert")

To figure out the name:
Go to File >> Options >> Customise ribbon

here you can get all the available commands (choose all commands or the relevant Tab)

Hover over the command with the mouse and it tells you the text to use.

Example for Insert TextBox : Insert Tab|Text|TextBox(TextBoxInsert)