I have an add-in called book1. inside addin there is a module called module1 that has a sub called addin1
I would like to run addin1 macro from another book
I am trying to call this macro as follows:
Call Addin1
but it does not work
and I tried:
Call book1.xlam.Module1.AddIn1
which doesn't work either
Does anyone know how to run a macro that is inside an add-in?
(Assuming Office 2007) Here is an example:
1- .2- , MsgBox("Add-In")3- xlam .4- .5- "" → Excel6 - .7- "" " Excel" "".8 "" xlam.9- , "".10 - "" → Excel.11 - "".12- "" " ".13- AddIn, .14 - , .
MsgBox("Add-In")
:
Sub test() ' from other excel file Application.Run ("youraddin.xla!ShowForm") End Sub
Public Sub ShowForm() loginform.Show End Sub
, , :) ! , .
run "'book1'!module1"
Jacob G answer - .xlam- , (.. ). .xlam- " "
, (.xlam):
, VBA, , ( VBAProject) - , Addin_1.
VBA , , Addin_1. > , Addin_1 ( ).
, :
Call Addin_1.routine_name(routine parameters)
Addin_1, Call Addin_1., , Call Addin_1.routine_name(, .
Call Addin_1.
Call Addin_1.routine_name(
Tested with Excel 2013. Found when I was interested to know what happened when I installed the link to the VBA project of the installed add-in (.xlam). I have not seen this documented.
Source: https://habr.com/ru/post/1745002/More articles:Strongly signing and updating links - .netDifferent subelements depending on attribute / element value - xsdWhat is Datatype for 10:00 AM PST in SQL Server - sql-serverjQuery auto scroll / slide show - jqueryСтроки соединения Winforms из App.config - c#Does UriBuilder incorrectly encode the value of a query parameter? - javaGetting "An entity with the same identifier already exists in this EntitySet", but the EntitySet is empty - silverlightRuby-Graphviz does not display png - ruby | fooobar.comCan I use the Goldberg algorithm in ocamlgraph to find the minimum flow graph? - algorithmCSS Columns and Printing - css3All Articles