Consulting

Results 1 to 4 of 4

Thread: How to access menu items of Excel add-in?

  1. #1

    How to access menu items of Excel add-in?

    Hi,

    I use an Excel plug-in from a third-party developer. The plug-in shows up as an additional menu item on my Excel along with Excel’s typical menu.

    I need to click on the menu item and then click on two other submenus to perform a task. I wish to automate this task through a macro. How can I do that?

    I also checked the folder where the files related to the plug-in are stored and it contains one xla file and a bunch of dll files.

    Thanks,

    MG.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If you can find the name of the functions that you need to run, you could set a refernec to the addin in your project, then just call the functions.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    xld,

    Thanks. I don't know how to get the name of the function. The button itself says 'Refresh'.

    To make the matter simple, how would you call the 'validation' sub-menu under the 'data' menu of Excel?

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Like this

    [vba]

    Application.CommandBars(1).Controls("Data").Controls("Validation...").Execu te
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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