Thursday, January 1, 2009

Name 'XlCellType' is not declared Error in VB.NET

Name 'XlCellType' is not declared : PRefix the with Microsoft.Office.Interop.Excel

Imports Excel = Microsoft.Office.Interop.Excel

Excel.XlCellType.xlCellTypeLastCell

Sheets(1).cells.specialcells(Excel.XlCellType.xlCellTypeLastCell).row

No comments:

Post a Comment