Solved

Calling a UDF addin in the personal work book

Posted on 2012-03-13
3
274 Views
Last Modified: 2012-06-21
I have a user defined function. I created an addin for it so that it would show up in every work book and that works fine and the function works well.

I also created a macro in my personal workbook that calls the udf.

When my udf is defined in an individual workbook, the macro and udf work great, but when I have the udf as an add-in (so that I don't have to add it to every workbook), I get a
Compile Error:
Sub or Function not defined and it highlights my udf.

I basically want to be able to run my macro from any workbook (hence why I put it in my personal workbook), without needing to add the function to every workbook (which is why I put it in as an add-in).

Any ideas as to why the personal workbook macro won't recognize my udf when it's in an add-in?
0
Comment
Question by:Josh_Blade
  • 2
3 Comments
 
LVL 45

Expert Comment

by:Martin Liss
ID: 37716928
Make it Public rather than Private.
0
 

Accepted Solution

by:
Josh_Blade earned 0 total points
ID: 37719431
The function was already public. For some reason, when I added it to the personal macro workbook as well as having it as an addin, it works fine.

I would have thought there would be some kind of conflict with the same function in an addin and in the personal workbook, but I guess not.
0
 

Author Closing Comment

by:Josh_Blade
ID: 37736756
Messed around and got it working.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now