pedie
Well-known Member
- Joined
- Apr 28, 2010
- Messages
- 3,875
Hi,
I came across this code sometime back and when i try to run it...it does not work. Looking to run my code in all the sheets except on Home, Sheet3, Sheet2.
I came across this code sometime back and when i try to run it...it does not work. Looking to run my code in all the sheets except on Home, Sheet3, Sheet2.
Code:
Sub working_new()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
If InStr("Home Sheet3 Sheet2", ws.Name) = 0 Then
With ws
On Error Resume Next
.Range("K1:K" & .Range("J" & .Rows.Count).End(xlUp).Row) _
.SpecialCells(xlCellTypeBlanks).Value = "x"
On Error GoTo 0
End With
End If
Next ws
End Sub