PC Review


Reply
Thread Tools Rate Thread

Calling VB functions that are stored in an addin

 
 
Eivind
Guest
Posts: n/a
 
      10th Dec 2008
I have a VB function, say test, that is stored in an addin. In my Excel
workbook I refer to the function by writing =test(...) in the appropriate
cell. When I transfer the workbook and the addin to a colleague, I experience
that the funtion call has been preset with the full file address to the addin
file, i.e. ='C:\Documents and Settings\cu72\Application
Data\Microsoft\AddIns\addin_containing_test.xla'!test(...).
And since my colleague doesn't have access to my C: drive the program
doesn't work. A workaround is of course to manually remove the full string
everywhere, but that's rather cumbersome and not very elegant. There must be
a better way?
Any suggestion will be appreciated
 
Reply With Quote
 
 
 
 
Peter T
Guest
Posts: n/a
 
      10th Dec 2008
Edit, Links, your addin, Break Links

forget if that works in Excel 2000, if not post back

Regards,
Peter T

"Eivind" <(E-Mail Removed)> wrote in message
news4626A40-12B9-4BF3-A159-(E-Mail Removed)...
>I have a VB function, say test, that is stored in an addin. In my Excel
> workbook I refer to the function by writing =test(...) in the appropriate
> cell. When I transfer the workbook and the addin to a colleague, I
> experience
> that the funtion call has been preset with the full file address to the
> addin
> file, i.e. ='C:\Documents and Settings\cu72\Application
> Data\Microsoft\AddIns\addin_containing_test.xla'!test(...).
> And since my colleague doesn't have access to my C: drive the program
> doesn't work. A workaround is of course to manually remove the full string
> everywhere, but that's rather cumbersome and not very elegant. There must
> be
> a better way?
> Any suggestion will be appreciated



 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      10th Dec 2008
On Wed, 10 Dec 2008 02:04:01 -0800, Eivind <(E-Mail Removed)>
wrote:

>I have a VB function, say test, that is stored in an addin. In my Excel
>workbook I refer to the function by writing =test(...) in the appropriate
>cell. When I transfer the workbook and the addin to a colleague, I experience
>that the funtion call has been preset with the full file address to the addin
>file, i.e. ='C:\Documents and Settings\cu72\Application
>Data\Microsoft\AddIns\addin_containing_test.xla'!test(...).
>And since my colleague doesn't have access to my C: drive the program
>doesn't work. A workaround is of course to manually remove the full string
>everywhere, but that's rather cumbersome and not very elegant. There must be
>a better way?
>Any suggestion will be appreciated


I've seen that behavior when the name of the UDF is not unique. So if, for
example, the name of your add-in is test.xla; and the name of your function is
test.xla; or if your colleague has a similarly named function or module on his
machine, there will be an issue.

It may also occur if your colleague does not have your add-in installed on his
machine.
--ron
 
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
Calling macro from a different addin =?Utf-8?B?TmF5YW4=?= Microsoft Excel Programming 2 3rd Aug 2007 08:50 PM
AddIn - Calling functions from VBA =?Utf-8?B?R3JhaGFtQg==?= Microsoft Excel Discussion 3 3rd Oct 2005 05:20 PM
Calling Oracle Stored Functions from vb.net rishaan Microsoft ADO .NET 2 17th Dec 2004 06:59 PM
Calling a sub from a addin in vba Roger Microsoft Excel Programming 4 3rd Nov 2003 10:39 AM
Calling an Excel Addin from VBA ABN Microsoft Excel Programming 0 31st Jul 2003 02:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:42 PM.