I would like to run a small VBA macro on several sheets in a workbook, but not all sheets.
I have found this code works for all worksheets but I do not want every sheet included:
ANy ideas?
![]()
Sub Dosomething() Dim xSh As Worksheet Application.ScreenUpdating = False For Each xSh In Worksheets xSh.Select Call RunCode Next Application.ScreenUpdating = True End Sub Sub RunCode() 'your code here End Sub
Bookmarks