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

This is a two part question. I have created several macros to run on a
spreadsheet.
Q1 - how do I combine all these seperate macros to run sequentially together
at the press of a customized toolbar button. ( I know how to create the
button).

Q2 - once I combine the macros into a Run all type button how do I share
this (or these) macros across my department?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 341
Default Sharing Macros

A1 - write a new macro called "SuperMacro"

Sub SuperMacro()
call Macro1
call Macro2
call Macro3
'etc
End Sub

A2 - save your file as an add-in. Post it on the network and let people
download it themselves. You will want to check it very thoroughly first.

--
Allllen


"Brad" wrote:

This is a two part question. I have created several macros to run on a
spreadsheet.
Q1 - how do I combine all these seperate macros to run sequentially together
at the press of a customized toolbar button. ( I know how to create the
button).

Q2 - once I combine the macros into a Run all type button how do I share
this (or these) macros across my department?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Sharing Macros

In answer to Q2, I save my macros in separate shared spreadsheets on
the network. People link their buttons to run the macro in the
workbooks. This way, I can have the same macro run by many different
people at the same time and I can have a development version, which I
can test and develop before promoting it to the final finished version
(saving it over the previous version). By saving it as the same named
file, people do not have to change their buttons - they just click the
same button to run the updated macro.

Also by sharing the workbook, no one else can see the code!

I always have an auto close statement on the macro spreadsheet as well,
so no one actually sees the macro spreadsheet open.

Hope that helps, but your question 2 is something I have been wanting
to ask too - If anyone has a better way, I would be pleased to hear and
try it.




Brad wrote:
This is a two part question. I have created several macros to run on a
spreadsheet.
Q1 - how do I combine all these seperate macros to run sequentially together
at the press of a customized toolbar button. ( I know how to create the
button).

Q2 - once I combine the macros into a Run all type button how do I share
this (or these) macros across my department?


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
Sharing Macros enna49 Excel Worksheet Functions 1 February 19th 10 01:03 PM
sharing macros Whitney Excel Discussion (Misc queries) 3 June 28th 08 09:47 AM
Sharing Macros Russ Excel Discussion (Misc queries) 2 August 9th 05 02:58 AM
Sharing WBs with Macros Kestrel1492 Excel Programming 3 July 5th 05 06:29 PM
Sharing macros Julia[_3_] Excel Programming 1 March 8th 05 02:50 AM


All times are GMT +1. The time now is 03:18 AM.

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"