Hi,
I'm trying to update a table with data that lies in an Excel sheet. My code lies in Excel.
I get error: 3265, "Item cannot be found in the collection corresponding to the requested name or ordinal."
Could it be because the tablename has to have a prefix or do i use a wrong method?
This is the code I am using:
....
For Jc = 1 To NosOfFields
ShColNo = Cols_to_do(Jc)
.Fields(ShWithValues.Cells(Row1, ShColNo)).Value = ShWithValues.Cells(Ic, ShColNo)
Next Jc
.Update
...
I'm trying to update a table with data that lies in an Excel sheet. My code lies in Excel.
I get error: 3265, "Item cannot be found in the collection corresponding to the requested name or ordinal."
Could it be because the tablename has to have a prefix or do i use a wrong method?
This is the code I am using:
....
For Jc = 1 To NosOfFields
ShColNo = Cols_to_do(Jc)
.Fields(ShWithValues.Cells(Row1, ShColNo)).Value = ShWithValues.Cells(Ic, ShColNo)
Next Jc
.Update
...