Hello,
I have a question,
In word there is the possibility to attach a template to a *.doc file. That
template is specific for that doc (attached template). If you open the doc
the macros in the dot will be executed. In excel there's no such thing as
attached template beneath a xls (workbook). I made an Addin application and
placed a template in the templates directory or another start file in the
start directory but in all that cases you start the macros in all the xls
files you open. I want to open the macros only when a specific xls (example
test.xls) is opened and not by another one (others.xls). Addins disable
doesn't work in code. It only works for all the xls files you open (on
application level). If this is not possible how do you delete macros in a
xls if you want to mail the xls without the macros? In word its very simple
to say: activedocument.attachedtemplate="" and you have no macros anymore.
Thanks a lot