Coldfire46
New Member
- Joined
- Aug 6, 2015
- Messages
- 17
Hi all,
I'm trying to write some code that loops through the names of the worksheets within a workbook and if the workbook title has the word 'Summary' in it, I want to do something further with the data in that worksheet. Will the following lines of code do that?
I'm trying to write some code that loops through the names of the worksheets within a workbook and if the workbook title has the word 'Summary' in it, I want to do something further with the data in that worksheet. Will the following lines of code do that?
Code:
For Each ws In ActiveWorkbook.Worksheets
If ws.Name Like "Summary*" Then
'Do something
End If
Next ws