I was trying to do macro tutorial excercise. However, when I recorded the macros in .vbproj (VSTA) file type I was having AcessViolationException error. When I use .swp (VBA) macros, ther is no such an error. Please help me how to get rid of the this error for VSTA type of macros. I have asked this question before when I tried some other excercise before, and have not received any answer. I thought this was related to the method I used that time. But this is related with something else not the specific method used in the macro. But I do not know the reason. Thanks for you help.