LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How do I invoke a VB subroutine that exists in an Add-In?

I've created an Excel Visual Basic subroutine that I want to share as an
Add-In. How do I make it so that the user can run the VB subroutine?

In the spreadsheet (.xls) source for the Add-In (.xla) I have created a new
toolbar with a button assigned to the main macro. Then I compile the Visual
Basic code and save the workbook as an Add-In file. I then close all files,
make the Add-In available through the Add-In manager, open a new
spreadsheet, select some cells and then click on the toolbar button that I
linked to the Visual Basic subroutine. Trouble is: The toolbar button wants
to run VB script from the original spreadsheet, not from the Add-In.

How do I tell the Excel toolbar (or menu, or whatever) to run the Visual
Basic subroutine that exists in my Add-In file?

Can I do that directly, or do I have to have some level of indirection: The
toolbar calls a regular Visual Basic program that invokes the subroutine in
the Add-In?

I have Microsoft Excel 2002 on Windows XP Pro.

Thanks,
Tom Doster


 
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
Call a subroutine using variable subroutine name dhstein Excel Discussion (Misc queries) 3 July 26th 09 08:28 PM
How do I invoke a call in Excel DeviceConnect Excel Discussion (Misc queries) 5 February 24th 09 09:34 PM
Can I invoke excel automatically from .bat or other means so that. rmkbrj Excel Programming 13 January 23rd 05 04:40 PM
Invoke a macro with the Enter key Duncan Help Excel Programming 2 January 11th 05 12:43 AM
Auto invoke of a VBA Sub function Jag Man Excel Programming 3 December 11th 03 09:26 AM


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

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

About Us

"It's about Microsoft Excel"