macro to all worksheets

  • Thread starter Thread starter kaja48380
  • Start date Start date
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.
 
Back
Top