0

I'm opening up an excel file which is project protected ie. I can't add a vba module to it.

But I need to execute a vba module on this file. How can I do that?

ns12345
  • 3,079
  • 5
  • 41
  • 62

2 Answers2

0

Answers here, which could be translated to .net:

How do I remove the password from a VBA project?

Tim

Community
  • 1
  • 1
Tim Williams
  • 154,628
  • 8
  • 97
  • 125
  • I don't want to crack the password. May be add macro as addin? or copy the file to another file without protection? I would like to know about these options and how to implement/ – ns12345 Mar 31 '11 at 20:18
  • @WhoIs: Maybe I'm misunderstanding what you mean by "execute a VBA module on this file", so maybe you could expand on that? I took it to mean you wanted to inseret some code into the VB project, but maybe you meant something else ? – Tim Williams Mar 31 '11 at 23:35
0

Figured out, copy all sheets to a new instance of workbook and then apply macro on that.!

ns12345
  • 3,079
  • 5
  • 41
  • 62