Can't figure out how to get the worksheet loop to advance to the next sheet. The way code is written currently loops the procedure on the same worksheet. What am I missing here?
Code
Sub ACCESS_OCIInventorySetup()
'Copy over unclean part number into new column range
Sheetcount = ActiveWorkbook.Worksheets.Count
For S = 1 To Sheetcount
Range("J1").Value = "Clean Part No"
For i = 2 To Cells(Rows.Count, "C").End(xlUp).Row
Cells(i, "J") = Cells(i, "C").Value
Next i
'Substitute all special characters and spaces and replace with ""
Intersect(Columns("J"), ActiveSheet.UsedRange).NumberFormat = "@"
For Each v In Array(" ", ".", "#", "-", "/", "~*", "(", ")", "BAV", "OCI", "ATT", "\", "LVN", "SDC")
Columns("J").Replace v, "", xlPart
Next v
Next S
End Sub
Display More