Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 3rd, 2005, 02:23 AM
Registered User
 
Join Date: May 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Call macro in Add-in from a toolbar button???

Dear all,

I have been trying to call a Macro from an addin, but it does not appear in the Macro-menu. Thus I cannot assign it to a tool bar button either. Can anyone help me??? I do need the file to be an add-in so I can't change that.

An how can I tell a VBscript to save the add-in in the default folder in stead of specifying a specific location?

Thanx alot in advance,

Chavo
 
Old May 3rd, 2005, 01:55 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Create a VBA routine to call the AddIn's routine.
That routine that you create can then be added to a toolbar button.

In the routine that you create, reference the AddIn specifically, and its routine. For instance, if the AddIn is called "BBR," and the routine is "GoPrint()," have your routine run the line BBR.GoPrint.

I haven't actually tried this, but it should work.

Pressing Ctrl+J in the VBA IDE should popup a list, and you can make your way through that list looking for the reference to the AddIn, to get the spelling, etc., right.





Similar Threads
Thread Thread Starter Forum Replies Last Post
add function to custom toolbar Vince_421 Access VBA 0 May 20th, 2006 10:36 AM
Button with dropdown in IE toolbar baburman General .NET 1 May 20th, 2005 02:39 AM
Browser Toolbar Print Button TSEROOGY Javascript 11 December 17th, 2004 01:04 AM
How can I add Toolbar and menu In my Plugin Object Daniel_hn Visual C++ 0 July 13th, 2004 03:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.