Missing.Value

  • Thread starter OldButStillLearning
  • Start date
O

OldButStillLearning

I am following along with an example from Microsoft (
http://support.microsoft.com/kb/302084 ) about how to use C# to create an
excel file. When I attempt to compile, is fails on the following line: oWB =
(Excel._Workbook)(oXL.Workbooks.Add( Missing.Value )); It does not recognize
"Missing.Value". Is there some reference which I need for it to find this
property? The only reference that I can find in the article says I need a
reference to "using Microsoft.Office.Interop.Excel;"

Thanks in advance for your assistance!!
 

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