Make function available to all workbooks?

D

Damien McBain

Hi,

I have a workbook which (via code) copies one of the worksheets into a new
workbook. The copied worksheet contains cell formulas using a function in
the original workbook. When copied, the new worksheet returns a #NAME?#
error in the cells using the function.

Can I make the function available to all open workbooks? Or can I employ
code to copy the module containing the function into the new workbook?

Thanks in advance,

Damien
 
G

Gord Dibben

You can place the function code into a workbook which you save as an Add-in

Or place the code into your Personal.xls

I prefer the add-in just because I don't have to type the name as in

=Personal.xls!function(cellref,args)

With the add-in just enter as =function(cellref,args)


Gord Dibben MS Excel MVP
 

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

Top