PC Review


Reply
Thread Tools Rate Thread

Addin conflicting with Workbook Module

 
 
Kigol
Guest
Posts: n/a
 
      14th Aug 2007
Backround: I had a workbook module containing code which I migrated to
an addin. At first I did not change the procedure names in the addin
to differ from those in the workbook module. Need less to say the
addin continued to run the old procedures until I changed the
procedure names.

Problem: After changing the names of the procedures it cannot find the
code in the addin. However this only occurs in the workbook with the
original code. It works fine in all other workbooks.

Suggestions?

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      14th Aug 2007
Are these UDFs that you use in a cell in a worksheet?

Saved from a previous post for the same kind of problem--the UDF was in a
workbook, then moved to an Addin.

After I moved the code from one workbook's project to the other and saved both
files (one as an addin), I did this in the "regular" workbook (.xls) (with the
..xla still open).

Insert|Name|define
myFunc
(refer to any cell)
Add

Then I deleted that name.
insert|name|define
myfunc
delete

Then I did edit|replace
what: = (equal sign)
with: = (equal sign)
replace all

Excel was smart enough to reevaluate this function from the xla.



Kigol wrote:
>
> Backround: I had a workbook module containing code which I migrated to
> an addin. At first I did not change the procedure names in the addin
> to differ from those in the workbook module. Need less to say the
> addin continued to run the old procedures until I changed the
> procedure names.
>
> Problem: After changing the names of the procedures it cannot find the
> code in the addin. However this only occurs in the workbook with the
> original code. It works fine in all other workbooks.
>
> Suggestions?


--

Dave Peterson
 
Reply With Quote
 
gimme_this_gimme_that@yahoo.com
Guest
Posts: n/a
 
      14th Aug 2007
Assuming your talking VBA here ....

You may as well change the name of one of the Subs to something else.

But if you want to make it so that other users of your AddIn Subs
don't run into the same problem, or if you're looking for a clean
solution to this problem in general, put your Addin Subs into a class
module.

If you need an example let me know.

 
Reply With Quote
 
Kigol
Guest
Posts: n/a
 
      14th Aug 2007
On Aug 14, 1:45 pm, "gimme_this_gimme_t...@yahoo.com"
<gimme_this_gimme_t...@yahoo.com> wrote:
> Assuming your talking VBA here ....
>
> You may as well change the name of one of the Subs to something else.
>
> But if you want to make it so that other users of your AddIn Subs
> don't run into the same problem, or if you're looking for a clean
> solution to this problem in general, put your Addin Subs into a class
> module.
>
> If you need an example let me know.


Well sure enough the simplist action resolved it...restarting excel
(which I swore I did prior to posting). Anyway, it works now but thank
you for your help. Must have just been holding the reference in memory
although I couldn't imagine why. Cheers.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run worksheet module code from workbook module? keithb Microsoft Excel Programming 1 14th Aug 2005 04:04 AM
re: Automatically Delete WorkBook 2 modules by using Workbook 1 module =?Utf-8?B?ZGRpaWNj?= Microsoft Excel Programming 5 27th Jul 2005 12:53 PM
Numberformat in ADDIN module doesn't work. =?Utf-8?B?WC5ZdQ==?= Microsoft Excel Programming 5 15th Oct 2004 06:01 PM
Reference Addin Module from sheet code zSplash Microsoft Excel Programming 2 19th Apr 2004 06:35 PM
addin a module on fly Cesar Zapata Microsoft Excel Programming 2 22nd Jul 2003 04:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 AM.