Missing.Value

  • Thread starter Thread starter OldButStillLearning
  • Start date 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!!
 
Back
Top