Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am trying to write an auto run macro that runs on each worksheet in the workbook except the first upon opening. I am using Sub Auto_Open() ' ' Auto_Open Macro ' Macro recorded 29/05/2007 by Kirsty Liddicoat ' Dim ws As Worksheet For Each ws In Worksheets(Array(2, 3, 4, 5, 6)) 'macro action Next ws End Sub being what I am trying to achieve. This is working but the macro is only running on the sheet it opens up on not all of the worksheets. Any suggestions? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to make a macro to clear multiple cells from multiple worksheets? | Excel Worksheet Functions | |||
Make Worksheets Given a Certain YEAR | Excel Discussion (Misc queries) | |||
how do I make two worksheets act as one? | Excel Worksheet Functions | |||
how do I make changes in several worksheets at once? | Excel Worksheet Functions | |||
how do I make changes in several worksheets at once? | Excel Discussion (Misc queries) |