Google Exceltip.com
Account Icon
Shopping Cart
CheckOut

» Userdefined functions from other workbooks using VBA in Microsoft Excel

You can use a userdefined worksheet function (UDF) from another workbook like this:

=OtherWorkbookName.xls!FunctionName(A1)

If you add a reference in the VBE (press Alt+F11 to open) to the other workbook with the UDF's,
you can reference the functions like this:

=FunctionName(A1)

If you make an addin out of your workbook with the UDF's, you can reference the functions
like this without creating any references (the add-in must be installed in order for the function to work):

=FunctionName(A1)
Rate this tip
12 34 5
  RATING: 3.83
  VIEWS: 14588
  No comments have been submitted.


REGISTERED USERS click here to post comments


GUESTSclick here to Register
Name
Comment Title
Comments


Terms and Conditions of use
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.

Copyright © 2003 ExcelTip.com
Microsoft, Microsoft Excel is a U.S. registered trademark of Microsoft Corporation