Quantcast
Channel: NetOffice - MS Office in .NET
Viewing all articles
Browse latest Browse all 1741

New Post: Excel ActiveWorkbook null

$
0
0
I am trying to read the current Workbook in Excel.

I call:

Excel.Application excelApplication = Excel.Application.GetActiveInstance();
Excel.Workbook currentWorkBook = excelApplication.ActiveWorkbook;

currentWorkBook is null after these calls, even though I can physically see that a workbook is open in excel.

Do I need to make some call beforehand? Is this a known issue? Any information would help.

Thanks.

Viewing all articles
Browse latest Browse all 1741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>