I'm sure you have a reason for looping through 100, but if you don't, you can simplify your code and resolve the issue by just avoiding it...
Sub Looper()
Dim simspg As Variant
Dim simspoint As Variant
simspg = Array("SP001", "SP002", "SP003", "SP004", "SP005", "SP006", "SP007", "SP008", "SP009", "SP010", "SP011", "SP012", "SP013", _
"SP014", "SP015", "SP016", "SP017", "SP018", "SP019", "SP020", "SP021")
For Each simspoint In simspg
Worksheets(simspoint).Select
Range("A1:A100").Value = 12
Next
End Sub
But, if you MUST loop to 100, then try this:
Sub Looper2()
Dim simspg As Variant
Dim simspoint As Variant
simspg = Array("SP001", "SP002", "SP003", "SP004", "SP005", "SP006", "SP007", "SP008", "SP009", "SP010", "SP011", "SP012", "SP013", _
"SP014", "SP015", "SP016", "SP017", "SP018", "SP019", "SP020", "SP021")
For Each simspoint In simspg
x = 1
Worksheets(simspoint).Select
For x = 1 To 100
Cells(x, 1).Value = 12
Next
Next
End Sub

Originally Posted by
BrianATrease
I didn't explain due to format control of post window, but the lines are staggered based upon hierarchy of script in the sheets I am working with. The staggering did not help there either. "x" still goes to 100 and does not reset. Thanks though, BAT:-)
If you had used code tags, your formatting would have remained
Bookmarks