locked
Microsoft.Office.Interop.Excel.Worksheet does not contain a definition for InsertRow RRS feed

  • Pergunta

  • I want to dynamically insert few rows in an excel sheet , but when i tried to use the below code as suggested over one of the forums  but its throwing an error.

    //Inserting 10 rows into the worksheet starting from 3rd row
    
     worksheet.Cells.InsertRows(2,10);
    
    Microsoft.Office.Interop.Excel.Worksheet doesnot contain a definition for 'InsertRow' 
    and no extension method 'InsertRow' acceping a 1st argument of type 'Microsoft.Office.Interop.Excel.Worksheet' 

    can any one help me in this...


    • Editado Sanjeev89cs sexta-feira, 5 de fevereiro de 2016 07:03
    sexta-feira, 5 de fevereiro de 2016 07:03

Todas as Respostas

  • Hi Sanjeev,

    I recommend posting this in the Excel developers forum. This is the forum for Microsoft Translator.

    Chris Wendt
    Microsoft Translator

    domingo, 7 de fevereiro de 2016 00:37