Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
The Vb6 application is developed using office 2003 .doc, .xls, .mdb as a data source works fine in .net
VB
Excel.ActiveWorkbook.SaveAs("filename")
throws
ComException was unhandled can not access filename...
Posted
Updated 7-Jan-12 19:26pm
v2
Comments
Sergey Alexandrovich Kryukov 8-Jan-12 1:05am    
Not enough information.
--SA

1 solution

Based on the error message its just about permission. Check this post
InteropServices.COMException (0x800A03EC): Microsoft Office Excel cannot access the file[^]
Related MSDN thread Excel 2007 automation[^]

For VB6 to VB.NET migration, check the below blog post
.NET Code Conversion[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900