get access to add-in via vba

Hans810

Board Regular
Joined
Dec 1, 2005
Messages
63
I would like to access the add-in commands from our ERP software (Exact Software) via VBA in an excel sheet, in which I have put an SQL querie. The green add-in button starts (extra icon in the top toolbar) the SQL querie. Pls help! Thanks in advance.
Regards from Holland, Hans
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
What sort of add-in is it? xla? dll? Starting point is to add a reference to it in your VBA project so you can write your code with the benefit of intellisense.
 
Upvote 0
Hello Colin,

Thanks for your reply. In my excel Add-In I can see the add-in named ExactGlobe, with the file EG2000.xla. Maybe this helps you for an answer. Regards, Hans
 
Upvote 0
In the mean time I found the answer to my question myself (with the help of some friends.....):

Dim ctlMenuItem As CommandBarControl
Set ctlMenuItem = CommandBars("Exact Globe").Controls(6) 'six buttons in total

"Exact Globe" is the ERP software I am using to extract the data.

Range("A5").Select 'Cel A5 in which the SQL Query is locked in
ctlMenuItem.Execute 'starts the "push" on the refresh button which is on the sixth position in the toolbar

Hope it can be helpful to other VBA users.
 
Upvote 0

Forum statistics

Threads
1,224,564
Messages
6,179,547
Members
452,925
Latest member
duyvmex

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top