Microsoft.Office.Tools.Excel.ListObject

T

thevelvet

I use VS2008 RTM version
I create Excel 2007 Add-in Project and I want to use
Microsoft.Office.Tools.Excel.ListObject not
Microsoft.Office.Inerop.Excel.ListObject.
How can I add ListObject to worksheet??

Microsoft.Office.Tools.Excel.ListObject listObj =
xlSheet.ListObjects.Add(Excel.XlListObjectSourceType.xlSrcRange, DataRange,
Type.Missing, Excel.XlYesNoGuess.xlYes, Type.Missing);

This code is can't conver type error
 

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

Top