I am working on this project (AddIn) for Excel 2007. It uses aspose cells for this purpose, as well as C #. I did not write the code, but I took on the project from someone else. Therefore, I am still studying the excel part, as I only know C #. I noticed that there is some code to create a workbook / worksheet. How do I know if it is written in VB or VBA so that I can study it? File extensions are similar to .cls, .frm, .bas, etc. I am using Visual Studio 2010.
In addition, the workbook / worksheets are password protected after creation. When I tried to change the password using the VB / VBA code (no matter what it is), it creates errors during the build, such as the expected identifier, declaration, expected, etc. But when I turn off the changes, all errors disappeared. The only change I made was to change the line in which the password is stored. (the string "password" was changed to "password1"), and suddenly other lines of code began to receive errors. Errors are the expected identifier, the expected announcement, etc., and it does not make sense to me. So I had to change the password through C # after it was password protected through VB / VBA. Also, how do I debug VB / VBA code. I tried to set breakpoints through VS2010, but did not hit them when I started the project. I am sure that worksheets are created using VB / VBA and therefore fall within these codes, but cannot be debugged.
I open AddIn using Visual Studio2010, and how to work with the code, both C # and VB / VBA. I can’t change anything with Alt + F11.
source share