oEx = CREATEOBJECT("Excel.Application") * -- The file I'm working with oEx.Workbooks.Open("c:\My Documents\hairtrek\hairtrek.xls") && it exists * -- I tried one of the following and then the other, both and then neither - * -- unclear on the concept, perhaps?? #INCLUDE xl97cons.h && found it - it's in the path * #DEFINE xlDown -4121 && this was in the code oEx.Rows("5:5").Select && works * -- Tried all of the following in succession, all of which stuffed up, with * -- runtime error described below oEx.Sheets.Selection.Insert(0xFFFFEFE7) && with/without #INCLUDE and/or #DEFINE * oEx.Sheets.Selection.Insert(-4121) && with #INCLUDE and/or #DEFINE * oEx.Sheets.Selection.Insert("-4121") && with #INCLUDE and/or #DEFINE * oEx.Sheets.Selection.Insert("0xFFFFEFE7") * -- the rest works fine, as a peek into the task manager shows oEx.Workbooks.Close release oExThe error is the following:
> * Insert a row > .Rows("5:5").Select && works > .Sheets.Selection.Insert <b>Shift:=xlDown</b> && generates a compile error >ENDWITH >>
> .Sheets.Selection.Insert<b>(0xFFFFEFE7)</b> && should no longer generate a compile error >>