我正在为2007年Excel开展这一项目。 它为此目的使用蓄电池和C#。 我没有写法,而是从其他人手中接过该项目。 因此,我仍在学习前线部分,因为我只知道C#。 我确实注意到,有一些制定工作手册/工作表格的守则。 我如何知道,它是在VB或VBA撰写的,以便我能够学习吗? 档案的延期情况如下: 我正在使用2010年视觉演播室。
Also the workbook/worksheets are password protected after creation.When I tried to change the password through VB/VBA code(whatever it is), it creates errors during build such as identifier expected, declaration expected etc.But when I undid the changes, all the errors disappeared. The only change I made was change the string that stored the password. (string "password" was changed to "password1") and suddenly other lines of code started getting errors.The errors are identifier expected, declaration expected etc. and that doesn t 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 putting breakpoints through VS2010 , but it s not hitting them when I run the project.I am sure the worksheets are created using VB/VBA and so its getting inside those codes, but cant debug.
我开始使用Saludio 2010,并介绍该守则如何使用C#和VB/VBA。 我用Alt+F11做任何改动。