Hi all,
I am really stupid I cannot get a macro to exclude the last two sheets in a workbook when I am using a for each construct. I tired with the following and that did not fly:
Code
Sub Duh()
Dim wks As Worksheet
For Each wks In ActiveWorkbook.Worksheets(Worksheets.Count - 2)
...
...
Next wks
End sub
Display More
Anyone know how to exclude the two last sheets from the for each construct?
/Robert