View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
mudraker[_199_] mudraker[_199_] is offline
external usenet poster
 
Posts: 1
Default Programmatically inserting a row with Excel 2003

žË¥¶w_


This is what i use on Excel 97



Sub Insert_Rows_Loop()
Dim CurrentSheet As Object

' Loop through all selected sheets
For Each CurrentSheet In Worksheets
' Insert 5 rows at top of each sheet
CurrentSheet.Rows("1:5").EntireRow.Insert
Next CurrentSheet
End Su

--
Message posted from http://www.ExcelForum.com