#1   Report Post  
Posted to microsoft.public.excel.programming
RS RS is offline
external usenet poster
 
Posts: 113
Default Addin macro

Ive got a macro in an addin thats installed in excel 2003 and I want to
assign a button to that sub. When I try to assign it to a button I can not
see it in the macro selection box. I have it as a public sub as follows:

Public Sub MergeFormatCells()
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlTop
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = True
End With
End Sub

Im trying to assign this to the excel toolbar button for all workbook and
not just assign it to one workbook.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Addin macro

Hi R,

Even though the macro will not be visible in
macro selection box, you can simply type in
the macro name and run it.



---
Regards.
Norman


"RS" wrote in message
...
Ive got a macro in an addin thats installed in excel 2003 and I want to
assign a button to that sub. When I try to assign it to a button I can not
see it in the macro selection box. I have it as a public sub as follows:

Public Sub MergeFormatCells()
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlTop
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = True
End With
End Sub

Im trying to assign this to the excel toolbar button for all workbook and
not just assign it to one workbook.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Addin macro

On May 30, 8:44 pm, RS wrote:
I’ve got a macro in an addin that’s installed in excel 2003 and I want to
assign a button to that sub. When I try to assign it to a button I can not
see it in the macro selection box. I have it as a public sub as follows:

Public Sub MergeFormatCells()
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlTop
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = True
End With
End Sub

I’m trying to assign this to the excel toolbar button for all workbook and
not just assign it to one workbook.


Hi R.
Check the General - Declararations of the Module containing the
macro. Macros are hidden but usable by typing the name into the run
box if you see "Option Private Module".
Regards
Geoff
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Addin macro

On May 31, 8:44 am, Canlink wrote:
On May 30, 8:44 pm, RS wrote:



I’ve got a macro in an addin that’s installed in excel 2003 and I want to
assign a button to that sub. When I try to assign it to a button I can not
see it in the macro selection box. I have it as a public sub as follows:


Public Sub MergeFormatCells()
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlTop
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = True
End With
End Sub


I’m trying to assign this to the excel toolbar button for all workbook and
not just assign it to one workbook.


Hi R.
Check the General - Declararations of the Module containing the
macro. Macros are hidden but usable by typing the name into the run
box if you see "Option Private Module". You can delete these words and then see the macro if you wish.
Regards
Geoff


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Addin macro

Hi Geoff,

I do not think that an add-in's macros
would be visible in the macro selection
dropdown.



---
Regards.
Norman
"Canlink" wrote in message
...
On May 31, 8:44 am, Canlink wrote:
On May 30, 8:44 pm, RS wrote:



I’ve got a macro in an addin that’s installed in excel 2003 and I want
to
assign a button to that sub. When I try to assign it to a button I can
not
see it in the macro selection box. I have it as a public sub as follows:


Public Sub MergeFormatCells()
With Selection
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlTop
.WrapText = True
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = True
End With
End Sub


I’m trying to assign this to the excel toolbar button for all workbook
and
not just assign it to one workbook.


Hi R.
Check the General - Declararations of the Module containing the
macro. Macros are hidden but usable by typing the name into the run
box if you see "Option Private Module". You can delete these words and
then see the macro if you wish.
Regards
Geoff


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
MACRO TO LOAD AN ADDIN FARAZ QURESHI Excel Discussion (Misc queries) 2 May 8th 09 09:26 AM
Calling macro from a different addin Nayan Excel Programming 2 August 3rd 07 08:50 PM
run addin function from macro darsg Excel Programming 3 August 29th 06 06:00 PM
Addin Macro in Toobar zSplash Excel Programming 5 July 23rd 06 05:28 PM
How to replace a macro with an addin?? Spam Hater Excel Programming 3 April 26th 04 11:24 AM


All times are GMT +1. The time now is 12:32 AM.

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

About Us

"It's about Microsoft Excel"