PC Review


Reply
Thread Tools Rate Thread

Autorun Add-in

 
 
Todd Heiks
Guest
Posts: n/a
 
      11th Dec 2009
How do i make my addin run when it is added to excel?
I want the user to browse to my addin and then have the addin build the
toolbar for itself.

Regards,
Todd


 
Reply With Quote
 
 
 
 
Chip Pearson
Guest
Posts: n/a
 
      11th Dec 2009
In the XLA's ThisWorkbook code module, put the code to build the menu:

Private Sub Workbook_Open()
' your code here
End Sub

Then, use BeforeClose to delete the menu:

Private Sub Workbook_BeforeClose(ByRef Cancel As Boolean)
' your code here
End Sub

Cordially,
Chip Pearson
Microsoft MVP 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com
[email on web site]



On Fri, 11 Dec 2009 14:34:11 -0500, "Todd Heiks"
<Todd.Heiks_AT_NoSpam_GreatLakesWindow.com> wrote:

>How do i make my addin run when it is added to excel?
>I want the user to browse to my addin and then have the addin build the
>toolbar for itself.
>
>Regards,
>Todd
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      11th Dec 2009
Your add-in needs some Workbook_Open event code in Thisworkbook module or
Auto_Open code in a general module.

The code will build the Toolbar.

Don't forget to delete the Toolbar when the add-in closes.

See Debra Dalgleish's site for sample by Dave Peterson.

http://www.contextures.on.ca/xlToolbar02.html


Gord Dibben MS Excel MVP


On Fri, 11 Dec 2009 14:34:11 -0500, "Todd Heiks"
<Todd.Heiks_AT_NoSpam_GreatLakesWindow.com> wrote:

>How do i make my addin run when it is added to excel?
>I want the user to browse to my addin and then have the addin build the
>toolbar for itself.
>
>Regards,
>Todd
>


 
Reply With Quote
 
Todd Heiks
Guest
Posts: n/a
 
      11th Dec 2009
I'll try it. Thanks.


"Chip Pearson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> In the XLA's ThisWorkbook code module, put the code to build the menu:
>
> Private Sub Workbook_Open()
> ' your code here
> End Sub
>
> Then, use BeforeClose to delete the menu:
>
> Private Sub Workbook_BeforeClose(ByRef Cancel As Boolean)
> ' your code here
> End Sub
>
> Cordially,
> Chip Pearson
> Microsoft MVP 1998 - 2010
> Pearson Software Consulting, LLC
> www.cpearson.com
> [email on web site]
>
>
>
> On Fri, 11 Dec 2009 14:34:11 -0500, "Todd Heiks"
> <Todd.Heiks_AT_NoSpam_GreatLakesWindow.com> wrote:
>
>>How do i make my addin run when it is added to excel?
>>I want the user to browse to my addin and then have the addin build the
>>toolbar for itself.
>>
>>Regards,
>>Todd
>>



 
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
autorun from SD card - how to determine the original autorun directory Buthrakaur Microsoft Dot NET Compact Framework 1 23rd Jul 2007 03:35 PM
How can I fix autorun? =?Utf-8?B?Qm9i?= Windows XP Help 1 22nd Aug 2006 04:34 AM
autorun =?Utf-8?B?UHV0IFBQVCB0byBiZWQ=?= Microsoft Powerpoint 3 3rd Aug 2006 10:49 PM
Autorun Add-In A.M Microsoft Excel Programming 2 21st Sep 2004 04:19 PM
cd-rom autorun Luke Windows XP Hardware 4 25th Nov 2003 03:00 AM


Features
 

Advertising
 

Newsgroups
 


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