Consulting

Results 1 to 6 of 6

Thread: PowerPoint 2010 problem

  1. #1
    VBAX Newbie
    Joined
    Oct 2011
    Posts
    3
    Location

    PowerPoint 2010 problem

    [vba]CommandBars.FindControl(Id:=139).Execute[/vba]works fine

    [vba]CommandBars.FindControl(Id:=1177).Execute[/vba]doesn't work

    [vba]CommandBars.FindControl(Id:=1226).Execute[/vba]doesn'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;}

  2. #2
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    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.
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  3. #3
    VBAX Newbie
    Joined
    Oct 2011
    Posts
    3
    Location
    I want to open a msoShapeLineCallout3

    Thanks for answering ;-)
    _____
    FB_Addon_TelNo{ height:15px !important; white-space: nowrap !important; background-color: #0ff0ff;}

  4. #4
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    I don't think that command bar is available in 2010. If it was, the format would be:
    Application.CommandBars.ExecuteMso("name of bar")
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

  5. #5
    VBAX Newbie
    Joined
    Oct 2011
    Posts
    3
    Location
    Quote Originally Posted by John Wilson
    I don't think that command bar is available in 2010.
    CommandBars.FindControl(Id:=139).Execute works fine in 2010.

    Quote Originally Posted by John Wilson
    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;}
    _____
    FB_Addon_TelNo{ height:15px !important; white-space: nowrap !important; background-color: #0ff0ff;}

  6. #6
    VBAX Master
    Joined
    Feb 2007
    Posts
    2,093
    Location
    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)
    John Wilson
    Microsoft PowerPoint MVP
    Amazing Free PowerPoint Tutorials
    http://www.pptalchemy.co.uk/powerpoi...tutorials.html

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •