Home |
Search |
Today's Posts |
#3
![]() |
|||
|
|||
![]()
This macro moves through each worksheet in a workbook and sums the first cell:
Sub Macro1() Dim w As Worksheet t = 0 For Each w In Worksheets w.Activate t = t + Cells(1, 1) Next MsgBox (t) End Sub Adapt it to your needs -- Gary's Student " wrote: HI, I am trying to find an easy way to apply a macro that changes the absolute value of a couple of cells and changes some plot formatting to all sheets in a workbook. All sheets are the same and need the same macro applied to them, I have recorded the macro such that I can click on a worksheet and hit a keyboard command to execute this, but I have to individually select each worksheet and repeat this throughout, how can this be automated? Thanks, Josh |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protecting all worksheets of a workbook | Excel Discussion (Misc queries) | |||
workbook Protection Toggle Macro | Excel Discussion (Misc queries) | |||
How do I build a workbook from the worksheets another workbook? | Excel Discussion (Misc queries) | |||
how do I arrange multiple worksheets from the same workbook | Excel Discussion (Misc queries) | |||
Extract specific data into its own workbook via macro? | Excel Discussion (Misc queries) |