Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Same function in add-in and workbook module

I have an add-in with several UDFs. If I copy one or more of these
functions to a workbook module , I seem to get no trouble calling such
function in that workbook. It also seems that the function which is
actually used then is the one in the workbook, not the one in the add-
in.
The reason for doing so is that I want to distribute the workbook to
other people with only the copied UDFs and without the whole add-in.
I want to keep that workbook on my own computer as well , thus having
the same UDF twice.
Is this sound practice or should I expect trouble?
Thanks for your advice.
Herman
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Same function in add-in and workbook module

I would suggest you rename the functions that you copy from your addin to
the workbook. It should not be too difficult for you to search & replace-all
in formulas to switch between use of workbook/addin functions.

If for some reason you prefer not use same names, after copying the
functions into the workbook, close the original addin (also rename or move
the file to a different folder). Recalc the workbook, save, close it. Reopen
it (with the addin still closed). First good indication is if you do not get
a missing link message, then check that all the formulas that call the UDF's
point correctly with no #NAME? errors.

If all looks OK it should be safe to distribute the workbook.

Regards,
Peter T

wrote in message
...
I have an add-in with several UDFs. If I copy one or more of these
functions to a workbook module , I seem to get no trouble calling such
function in that workbook. It also seems that the function which is
actually used then is the one in the workbook, not the one in the add-
in.
The reason for doing so is that I want to distribute the workbook to
other people with only the copied UDFs and without the whole add-in.
I want to keep that workbook on my own computer as well , thus having
the same UDF twice.
Is this sound practice or should I expect trouble?
Thanks for your advice.
Herman




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving Public Function From Workbook Module to XLA Bruce[_10_] Excel Programming 3 October 25th 07 08:30 PM
Run worksheet module code from workbook module? keithb Excel Programming 1 August 14th 05 04:04 AM
Automatically Delete WorkBook 2 modules by using Workbook 1 module ddiicc Excel Programming 5 July 27th 05 12:53 PM
Copy VBA Module and Form from Workbook to another workbook topaiva Excel Programming 1 November 25th 04 03:47 PM
Macro, Module, function, sub and This workbook and sheets ? Hari[_3_] Excel Programming 17 June 15th 04 11:03 PM


All times are GMT +1. The time now is 05:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"