View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
rodchar rodchar is offline
external usenet poster
 
Posts: 80
Default do something for each sheet

hey all,
i found this snippet on the net but it doesn't seem to be working for me:

Sub proTest()
Dim varSheet As Variant

For Each varSheet In Worksheets
Range("A1").Value = 22
Next

End Sub

It only puts it into the current active sheet. can someone please tell me
how to run it for each sheet or what i'm doing wrong in the preceding snippet?

thanks,
rodchar