Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Call Com Addin Toolbar from program

Call Com Addin Toolbar from program

Scheduled Pinned Locked Moved Visual Basic
comhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vancouver777
    wrote on last edited by
    #1

    I am developping com addins for word. I want to find out if there is a way to click on the customized button in toolbar programmatically. I tried to call like this in module. Application.CommandBars("MYWORDTOOLBAR_NAME").FindControl("MYBUTTON").execute but I am just getting this error message "fail method "Execute" of object CommandBarButton" Do you have any idea why? van

    D 1 Reply Last reply
    0
    • V vancouver777

      I am developping com addins for word. I want to find out if there is a way to click on the customized button in toolbar programmatically. I tried to call like this in module. Application.CommandBars("MYWORDTOOLBAR_NAME").FindControl("MYBUTTON").execute but I am just getting this error message "fail method "Execute" of object CommandBarButton" Do you have any idea why? van

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You might want to break that statement up and see if .FindControl("MYBUTTON") actually returned a CommandBarButton before you try and call .Execute() on it. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups