L
Legacy 220867
Guest
Hi all, can someone please help me with this one. I have a macro that loops through all the sheets in my workbook and then executes a certain code. However I do not want certain sheets to be included. How can I alter the code to skip sheets containing the word 'Database'?
Code:
<code>
Sub WorksheetLoop()
Dim WS_Count As Integer
Dim I As Integer
WS_Count = ActiveWorkbook.Worksheets.Count
For I = 1 To WS_Count
'My Code
Next I
End Sub
</code>
Last edited by a moderator: