Quantcast
Channel: EPPlus Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 2262

Created Unassigned: VBA Project is missing. [15459]

$
0
0
There is a VBA project if I open the file and look but the following method is showing VbaProject as null.

using (ExcelPackage excelpack = new ExcelPackage(utfile))
{
if (excelpack.Workbook.VbaProject == null) throw new ApplicationException("Error on getting the project");
excelpack.Workbook.VbaProject.Protection.SetPassword("EncryptedLockCode");
excelpack.Save();
}

I've tried on both .xlsx and .xlsm.

Viewing all articles
Browse latest Browse all 2262

Trending Articles



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