PC Review


Reply
Thread Tools Rate Thread

AddIn - Calling functions from VBA

 
 
=?Utf-8?B?R3JhaGFtQg==?=
Guest
Posts: n/a
 
      3rd Oct 2005
I've written an Addin, added it to the list of available addins and installed
it. I can use the functions within the AddIn within Excel worksheets. What
I would also like to be able to do is call the function from VBA. How can I
do this?

Thanks,

Graham
 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      3rd Oct 2005
Graham,

Set a reference to your Add-in through the VBE, Tools, References....

HTH,
Bernie
MS Excel MVP


"GrahamB" <(E-Mail Removed)> wrote in message
news:148EDE4E-708B-4138-8944-(E-Mail Removed)...
> I've written an Addin, added it to the list of available addins and installed
> it. I can use the functions within the AddIn within Excel worksheets. What
> I would also like to be able to do is call the function from VBA. How can I
> do this?
>
> Thanks,
>
> Graham



 
Reply With Quote
 
=?Utf-8?B?R3JhaGFtQg==?=
Guest
Posts: n/a
 
      3rd Oct 2005
Bernie,

Thanks for your note. I unfortunately get a error message "Name conflicts
with existing module, project or Object library". Any ideas what I have to
rename in my addin to prevent me referencing it?

Thanks Graham

"Bernie Deitrick" wrote:

> Graham,
>
> Set a reference to your Add-in through the VBE, Tools, References....
>
> HTH,
> Bernie
> MS Excel MVP
>
>
> "GrahamB" <(E-Mail Removed)> wrote in message
> news:148EDE4E-708B-4138-8944-(E-Mail Removed)...
> > I've written an Addin, added it to the list of available addins and installed
> > it. I can use the functions within the AddIn within Excel worksheets. What
> > I would also like to be able to do is call the function from VBA. How can I
> > do this?
> >
> > Thanks,
> >
> > Graham

>
>
>

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      3rd Oct 2005
Graham,

Excel does references by "Project name", which doesn't change even if the workbook name is changed.
The default is VBAProject, so you probably have a whole bunch of VBAProject's. To change the name
of your add-in, press F4 to open the properties window, select the add-in in the Explorer window,
and change VBAProject to something unique, like "MyVBAAddIn"

HTH,
Bernie
MS Excel MVP


"GrahamB" <(E-Mail Removed)> wrote in message
news:1852AF52-5330-4354-9A0F-(E-Mail Removed)...
> Bernie,
>
> Thanks for your note. I unfortunately get a error message "Name conflicts
> with existing module, project or Object library". Any ideas what I have to
> rename in my addin to prevent me referencing it?
>
> Thanks Graham
>
> "Bernie Deitrick" wrote:
>
>> Graham,
>>
>> Set a reference to your Add-in through the VBE, Tools, References....
>>
>> HTH,
>> Bernie
>> MS Excel MVP
>>
>>
>> "GrahamB" <(E-Mail Removed)> wrote in message
>> news:148EDE4E-708B-4138-8944-(E-Mail Removed)...
>> > I've written an Addin, added it to the list of available addins and installed
>> > it. I can use the functions within the AddIn within Excel worksheets. What
>> > I would also like to be able to do is call the function from VBA. How can I
>> > do this?
>> >
>> > Thanks,
>> >
>> > Graham

>>
>>
>>



 
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 VB functions that are stored in an addin Eivind Microsoft Excel Programming 2 10th Dec 2008 01:03 PM
Calling macro from a different addin =?Utf-8?B?TmF5YW4=?= Microsoft Excel Programming 2 3rd Aug 2007 09:50 PM
Calling Addin function? Brian Shafer Microsoft Excel Discussion 2 7th Jan 2004 12:37 AM
Calling a sub from a addin in vba Roger Microsoft Excel Programming 4 3rd Nov 2003 11:39 AM
Calling an Excel Addin from VBA ABN Microsoft Excel Programming 0 31st Jul 2003 03:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:03 PM.