Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
hi
how to apply a single macro to all worksheets???????? |
#2
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Sub allsheets()
Dim w As Worksheet For Each w In Worksheets w.Range("A1").Value = 1 Next End Sub is an example of doing something on all the worksheets in a workbook. -- Gary''s Student - gsnu2007d " wrote: hi how to apply a single macro to all worksheets???????? |
#3
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
Sub allshts()
For Each ws In ActiveWorkbook.Sheets MsgBox ws.Name Next ws End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software wrote in message ... hi how to apply a single macro to all worksheets???????? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using a macro that includes 2 worksheets | Excel Discussion (Misc queries) | |||
Run Macro for all worksheets | Excel Worksheet Functions | |||
Run a macro on multiple worksheets? | Excel Discussion (Misc queries) | |||
MACRO AND MULTIPLE WORKSHEETS | Excel Worksheet Functions | |||
Same macro - Different Worksheets!? | Excel Discussion (Misc queries) |