Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
saunak
 
Posts: n/a
Default run macros automatically

i have got around 10 macros in a excel spreadsheet. i want all of them to run
when i open the file. or there should be a button which will runs all the
macros whenever the user wants.
  #2   Report Post  
Neil
 
Posts: n/a
Default

You can do it either way really,

First create a new macro, that runs all the ten macros that are in your
workbook.

If you want this macro to run whenever the sheet is opened, save it with the
name 'Auto_Exec' and it will run automatically when you open the book.

If you want to execute the macro on a button press, you can call it any name
you wish.
Next you will need to create a new button, so go to the 'View' menu, select
'Toolbars', then the 'Form' toolbar. From the toolbar now displayed, click on
the 'button' icon and create a new button on your sheet.
You will see a dialog sking you which macro you want to link this button to,
just select your macro that you created above, and everything should work
just fine.

HTH

Neil
www.nwarwick.co.uk

"saunak" wrote:

i have got around 10 macros in a excel spreadsheet. i want all of them to run
when i open the file. or there should be a button which will runs all the
macros whenever the user wants.

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Call it Auto_Open, not Auto_Exec.

--
HTH

Bob Phillips

"Neil" wrote in message
...
You can do it either way really,

First create a new macro, that runs all the ten macros that are in your
workbook.

If you want this macro to run whenever the sheet is opened, save it with

the
name 'Auto_Exec' and it will run automatically when you open the book.

If you want to execute the macro on a button press, you can call it any

name
you wish.
Next you will need to create a new button, so go to the 'View' menu,

select
'Toolbars', then the 'Form' toolbar. From the toolbar now displayed, click

on
the 'button' icon and create a new button on your sheet.
You will see a dialog sking you which macro you want to link this button

to,
just select your macro that you created above, and everything should work
just fine.

HTH

Neil
www.nwarwick.co.uk

"saunak" wrote:

i have got around 10 macros in a excel spreadsheet. i want all of them

to run
when i open the file. or there should be a button which will runs all

the
macros whenever the user wants.



  #4   Report Post  
Neil
 
Posts: n/a
Default

Oops, slipped into Access mode there, sorry if I caused any confusion!

"Bob Phillips" wrote:

Call it Auto_Open, not Auto_Exec.

--
HTH

Bob Phillips

"Neil" wrote in message
...
You can do it either way really,

First create a new macro, that runs all the ten macros that are in your
workbook.

If you want this macro to run whenever the sheet is opened, save it with

the
name 'Auto_Exec' and it will run automatically when you open the book.

If you want to execute the macro on a button press, you can call it any

name
you wish.
Next you will need to create a new button, so go to the 'View' menu,

select
'Toolbars', then the 'Form' toolbar. From the toolbar now displayed, click

on
the 'button' icon and create a new button on your sheet.
You will see a dialog sking you which macro you want to link this button

to,
just select your macro that you created above, and everything should work
just fine.

HTH

Neil
www.nwarwick.co.uk

"saunak" wrote:

i have got around 10 macros in a excel spreadsheet. i want all of them

to run
when i open the file. or there should be a button which will runs all

the
macros whenever the user wants.




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
Enable macros automatically for a workbook Diane Alsing Excel Discussion (Misc queries) 4 February 16th 05 05:48 PM
Enabling macros Peter M Excel Discussion (Misc queries) 3 February 7th 05 10:57 PM
sorting with macros Sorting in macros Excel Discussion (Misc queries) 1 February 1st 05 09:02 AM
Transferring toolbars and macros to other computers Darrell Excel Discussion (Misc queries) 1 January 19th 05 12:21 AM
Macros disappear after a file is imported Brent E Excel Discussion (Misc queries) 1 December 18th 04 12:25 AM


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