How to Insert Rows to Table Object Inside an Excel Sheet?

后端 未结 4 1930
死守一世寂寞
死守一世寂寞 2021-02-19 04:46

I have difficulties trying to insert rows into an existing table object. Here is my code snippet:

string connectionString = \"Provider=Microsoft.ACE.OLEDB.12.0;D         


        
4条回答
  •  盖世英雄少女心
    2021-02-19 05:28

    I'm not sure Access C# works the same as Excel, but this worked on a spreadsheet for me. Maybe it could help you?

    Table3.ListRows[1].Range.Insert(Excel.XlInsertShiftDirection.xlShiftDown);
    

提交回复
热议问题