PDA

View Full Version : Call a function in another Excel 2010 AddIn (.xlam)



exaveal
01-10-2013, 02:36 PM
Hello all!

I try to call a function/procedur in an Excel2010-AddIn (.xlam file) from another Excel2010-AddIn (.xlam file):

Application.Run (filename.xlam!functionname)

Both AddIn-files are in the same directory (the default AddIn directory).
This call causes the error message "runtime error 91: object variable or with block variable not set".

This problems came up with providing an existing Excel2003-AddIn for Excel 2010.
The same code runs in following cases:
1. call a function in an Excel2003-AddIn (.xla) from another Excel2003-AddIn (.xla)
2. call a function in an Excel2003-AddIn (.xla) from a Excel2010-AddIn (.xlam)

Does anybody knows this problem and has perhaps a solution for this?


Thanks a lot, I tried all I could do.
Greetings, exaveal

p45cal
01-10-2013, 05:37 PM
FYI cross-post at
http://www.mrexcel.com/forum/excel-questions/678608-call-function-another-excel-2010-addin-xlam.html

exaveal
01-11-2013, 12:38 AM
FYI cross-post
Morning! (German time ;) )
Is this a problem? I also opened a thread at excelforum.com:
To be able to post links your post count must be 5 or greater. Your post count is 1 momentarily.

I started to find out where I can get support for my problem. The german vba-communities are not really buzzing.

When I found a solution I can share it also in the other communities or is this not welcomed? Should I delete the postings?

Nice day!

Aflatoon
01-11-2013, 04:39 AM
The argument to Run is a string
Application.Run "filename.xlam!functionname"

p45cal
01-11-2013, 04:08 PM
To be able to post links your post count must be 5 or greater. Your post count is 1 momentarily.[/edit]

I started to find out where I can get support for my problem. The german vba-communities are not really buzzing.

When I found a solution I can share it also in the other communities or is this not welcomed? Should I delete the postings?http://www.vbaexpress.com/forum/faq.php?faq=new_faq_item#faq_new_faq_item3