View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.programming
Kaak[_37_] Kaak[_37_] is offline
external usenet poster
 
Posts: 1
Default Loop through all sheets in workbook


I think you want to do this

Private Sub Workbook_Open()

Dim i As Long

For i = 1 To Worksheets.Count

Sheets(i).select

Range("A1").Value = "Hello"

Next i

End Su

--
Kaa
-----------------------------------------------------------------------
Kaak's Profile: http://www.excelforum.com/member.php...nfo&userid=751
View this thread: http://www.excelforum.com/showthread.php?threadid=47936