Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default addin toolbar

Hi,
I have a macro called Mymacro()
I need to save that macro as an add-in...

The problem is that I need to have a toolbar button that will launch
Mymacro().

I need the addid to create this toolbar button too.

Any idea?

Paul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default addin toolbar

See this page for a example
http://www.contextures.com/xlToolbar02.html

--
Regards Ron de Bruin
http://www.rondebruin.nl



"guedj54" wrote in message ...
Hi,
I have a macro called Mymacro()
I need to save that macro as an add-in...

The problem is that I need to have a toolbar button that will launch
Mymacro().

I need the addid to create this toolbar button too.

Any idea?

Paul



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default addin toolbar

Hi,

I had the same problem too and decided to assign shortcut keys to my macros.
This way I sepparated the issue of the macro that launches the toolbar from
the macros that do the tasks. For example, you could install the Add-Inn and
have the following code in one module

Option Explicit
Public Sub SetMacroOptions()
Dim Description As String
Description = "Installs the ""error checking"" and ""show/hide"" command bars"
Call Application.MacroOptions(Macro:="InstallCommandBar ", _
Description:=Description, _
HasShortcutKey:=True, _
ShortcutKey:="I")
End Sub

After you put the Add-Inn in the right folder, you just press Ctrl+Shift+I
and the toolar is installed (the "InstallCommandBar" macro). I hope this
helps.

What do you mean when you say "I need to save that macro as an Add-In"? Do
you mean saving a workbook (that contains VB code) as an Add-In?

--
Carlos


"guedj54" wrote:

Hi,
I have a macro called Mymacro()
I need to save that macro as an add-in...

The problem is that I need to have a toolbar button that will launch
Mymacro().

I need the addid to create this toolbar button too.

Any idea?

Paul

Reply
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
toolbar addin for tabs BorisS Excel Discussion (Misc queries) 2 December 1st 06 02:28 AM
toolbar addin for tabs Mike Rogers Excel Discussion (Misc queries) 0 November 29th 06 05:25 PM
toolbar addin for tabs BorisS Excel Discussion (Misc queries) 0 November 29th 06 04:43 PM
toolbar addin for tabs Mike Rogers Excel Discussion (Misc queries) 0 November 29th 06 03:52 PM
How do I Add an Addin to Toolbar Xispo Excel Programming 1 November 12th 03 09:57 PM


All times are GMT +1. The time now is 01:14 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"