Question Excel Insert new row

rchiu5hk

Member
Joined
Jul 30, 2008
Messages
5
Programming Experience
1-3
Dear all,

I try to insert new row under row 22 but it prompt error . Do you know how
to correct?
-----------------------------------------------------------------------
objSheet = objExcel.Sheets("EK")
objSheet.Rows("22:22").Select() ' Prompt error
objSheet.Selection.Insert (Shift:=Excel.XlDirection.xlDown) ' don't know
it is correct or not in this syntax.
-----------------------------------------------------------------------------

Please help me!
 
Back
Top