Transferring custom function

  • Thread starter Thread starter Brad Reid
  • Start date Start date
B

Brad Reid

I need to transfer a custom function from one workbook to another. At
first, I thought that simply copying the worksheet where the function is
operative to the other workbook would do the trick, but no luck. My thanks
in advance if someone could point out the method. BR
 
Go to the VBE, Alt-F11, and locate the code module. Copy the function,
select the other workbook, Insert a code module, and paste it.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
If the custom function is build with VBA, then with the workbook containing
the code open, you can reference it with

=CustomFunctionBook.xls!CustomFunctionName(arg1, arg2)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top