Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
hbj hbj is offline
external usenet poster
 
Posts: 35
Default Sub or Function not defined - Call to a sub in and XLAM addin

Have to admit: I don't quite understand XLA:s and their use.

I have made an XLAM file with common UDFs: and Subs. In the developer mode, this XLAM is loaded in the project window (as a project). I have loaded the XLAM in "Excel-Options-Addins".
In Worksheet I can call a function in that XLAM, but when I run a macro, which calls a public Sub in XLAM, I get this error. Of course I should add it into the references, but it is not visible in the available list. I can browse to the directory, where it locates, but it is then called simply "VBAProject" and conflicts with the already loaded XLAM. What's the clue?

Håkan
  #2   Report Post  
Posted to microsoft.public.excel.programming
hbj hbj is offline
external usenet poster
 
Posts: 35
Default Sub or Function not defined - Call to a sub in and XLAM addin

On Friday, May 6, 2016 at 5:25:07 PM UTC+3, hbj wrote:
Have to admit: I don't quite understand XLA:s and their use.

I have made an XLAM file with common UDFs: and Subs. In the developer mode, this XLAM is loaded in the project window (as a project). I have loaded the XLAM in "Excel-Options-Addins".
In Worksheet I can call a function in that XLAM, but when I run a macro, which calls a public Sub in XLAM, I get this error. Of course I should add it into the references, but it is not visible in the available list. I can browse to the directory, where it locates, but it is then called simply "VBAProject" and conflicts with the already loaded XLAM. What's the clue?

Håkan


ALREADY SOLVED!

I just found e very useful explanation on XLAMs:
http://fontstuff.com/vba/vbatut08.htm
I had to rename the AddIn from "VBAProject" to another not to conflict with the default name for the open file.

What I actually did: Open the XLSM instance if the AddIn
Change the name in VBA Project window
Save it in XLAM
Load it in Excel-options-AddIns
In my work file, in VBA editor, Tools-Reference, tag the name of your XLAM..


Håkan
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to call a macro from a xlam in a xlsm CLDommel Excel Programming 3 November 24th 09 03:50 PM
Reference / Binding Addin.xlam Albert Excel Programming 4 November 3rd 09 01:11 AM
Urgent Pls, how to convert an addin xlam file to xls worksheet in Ahmed Excel Discussion (Misc queries) 1 April 28th 09 06:25 PM
Call an ADDIN function from VBA code Marvin Excel Programming 11 June 25th 07 05:55 PM
How map types when call functions defined in XLL AddIn from VBA Ravil Excel Programming 1 March 23rd 06 10:49 PM


All times are GMT +1. The time now is 10:45 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"