Object doesn't support this property or method (Error 438)

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
This is the code that is giving the above error,
Set objList = Worksheets(1).ListObject(0).ListRows.Add
I got this code from the MS Help in excel. I am trying to dynamically add a
row at a specified location. Can anyone help with this.
Thanx
 
The object is ListObjects with an "s". Also the first one would have an
index of 1 so 0 I think is invalid

Worksheets(1).ListObjects(1).ListRows.Add

--
Jim
| Hi,
| This is the code that is giving the above error,
| Set objList = Worksheets(1).ListObject(0).ListRows.Add
| I got this code from the MS Help in excel. I am trying to dynamically add
a
| row at a specified location. Can anyone help with this.
| Thanx
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top