ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How Do I Create an Excel 2007 Workbook Programatically (https://www.excelbanter.com/excel-programming/363182-how-do-i-create-excel-2007-workbook-programatically.html)

Mark W. Robbins

How Do I Create an Excel 2007 Workbook Programatically
 
I am writing a tool in VStudio 2005 which needs to generate an Excel 2007
workbook programatically. I have done this many times in the past with
previous versions of Excel without problems. However, with the Excel 12
object library when I attempt to instantiate the Excel.Application object, a
System.UnauthorizedAccessException is thrown and the error 80070005 is
reported.
What is the trick to doing this?


All times are GMT +1. The time now is 08:18 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com