Solved

Calling a UDF addin in the personal work book

Posted on 2012-03-13
3
275 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 46

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tags from access to excel 3 30
how to read all the sheets in excel 12 42
What is format f12.8 for a CSV file 6 41
Vlookup formula error 15 11
Outlook Free & Paid Tools
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

895 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

16 Experts available now in Live!

Get 1:1 Help Now