Click here to Skip to main content
15,921,793 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wanna Read the content of the module within a protected excel which i already knew the password.

I achieved to open the excel like this:
VB.NET
LoExcel = CreateObject("Excel.Application")
LoWorkBook = LoExcel.WorkBooks.Open(fileName:=FilesName(0), password:="")


Next,how can i get the code?

Whatever you leave,thx all the same.
Posted
Updated 18-Apr-10 1:57am
v2

1 solution

I have been looking at this question this morning, and had difficulties with accessing the vba project as it returns a trust error.

You may want to look at the link at the bottom, to see if you can figure out a way round this.

I have a feeling though that unless the original modules have been code signed then it may not be possible. It may be done this way to prevent a virus from self replicating into other documents.

http://www.cpearson.com/excel/vbe.aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900