Excel Recorded Macro gets Run Time Error
Posted by chafee on December 20, 2000 8:11 AM
Excel 2000
Automating the show or hide details of an outline.
I used the Data...Group and Outline...Group function in Excel to develop an outline. I then recorded the Data...Group and Outline..."Show Detail" and "Hide Detail" functions using Record Macro. Steping through the macro a Run time Error 1004 "Entered to many arguments for this function" appears. The recorded macro includes only:
Sub Macro1()
Range("A21").Select
ExecuteExcel4Macro "SHOW.DETAIL(1,20,FALSE,,31)"
ExecuteExcel4Macro "SHOW.DETAIL(1,20,TRUE,,31)"
End Sub
Any ideas how to make this work.
tks
Steve