Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The VBA method for inserting a row in previous versions of Excel generates a run-time error '1004' Application-defined or object-defined error. Has the code model changed
Here's the sample code that will generate the error - It comes straint from KB Article - 291305 for Excel 2000 or Excel 9 Sub Insert_Rows_Loop( Dim Current Sheet as Objec ' Loop through all selected sheet For Each CurrentSheet in ActiveWindow.Selected Sheet ' Insert 5 rows at top of each shee CurrentSheet.Range("a1:a5").EntireRow.Insert '*******This row generates the erro Next CurrentShee End Su Any help you could provide would be most appreciated |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting a checkbox into Excel 2003 | Excel Discussion (Misc queries) | |||
Inserting pictures in Excel 2003 | Excel Discussion (Misc queries) | |||
Inserting Rows in Excel 2003 | Excel Discussion (Misc queries) | |||
inserting an address into excel 2003 | Excel Discussion (Misc queries) | |||
Excel 2003 Inserting current date | Excel Discussion (Misc queries) |