+ Reply to Thread
Results 1 to 4 of 4

How to execute commandbar control?

  1. #1
    Registered User
    Join Date
    05-17-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    3

    How to execute commandbar control?

    Hi everyone,
    I am trying to create 2 Powerpoint VBA Subs to insert shapes: 1 to insert the line arrow double im1.png, 1 to insert the flow chart merge im2.png (as both cannot be found in the commands to customize the ribbon for some reason)
    I managed to create the second one in Excel but Powerpoint throws me an error: method of execute object failed. The first one while I found the control is not executing on neither application

    What should I do please? I noticed in Powerpoint both items under their respective commandbars have a "false" property in "enabled" (which I cannot force to true)

    Many thanks for your help,

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert WideBoyDixon's Avatar
    Join Date
    10-03-2016
    Location
    Sheffield, UK
    MS-Off Ver
    365
    Posts
    2,182

    Re: How to execute commandbar control?

    Not sure that's the best way. You can have full control of the position and size like this:

    Please Login or Register  to view this content.
    WBD
    Office 365 on Windows 11, looking for rep!

  3. #3
    Registered User
    Join Date
    05-17-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    3

    Re: How to execute commandbar control?

    Thanks for your answer WBD. The thing with your method is that position and size are pre-defined. Whereas using commandbar is like clicking on the button in the shapes menu where you can position the arrow/ triangle wherever you like (as opposed to adjusting the one created) :-/

  4. #4
    Registered User
    Join Date
    05-17-2016
    Location
    London
    MS-Off Ver
    2016
    Posts
    3

    Re: How to execute commandbar control?

    Up! An idea anyone please? I am trying to replicate what an existing command is doing (to have the buttons in my personalized toolbar instead of having to dig into the shapes button). I imagine there is a solution existing :-/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pass Commandbar.Control.caption to sub routine
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-01-2010, 10:51 AM
  2. link to a cell from a commandbar control
    By Keyur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-29-2009, 12:40 PM
  3. Put a custom image in a CommandBar Control?
    By Air_Cooled_Nut in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2008, 01:05 PM
  4. CommandBar control ID help.
    By Dev in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-06-2006, 09:45 PM
  5. positioning the control on a popup commandbar
    By MVM in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2005, 03:05 PM
  6. [SOLVED] Assign hyperlink to new commandbar control
    By mabond in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2005, 10:05 AM
  7. [SOLVED] Can a CommandBar Control Caption be Formatted ?
    By RAFAAJ2000 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2005, 04:05 AM
  8. How control where the CommandBar will be placed?
    By Gunnar Johansson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2005, 12:06 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1