On Thu, 2 Aug 2007, Vladimir wrote:
I found the way to determine if an Excel document contains macro, but I can't distinguish if that macro is password protected or visible to everyone.

Your best bet is to create a simple excel file, containing a few cells, and your macro (un-protected). Save a copy of that.

Now, open up the copy, and password protect the macro. Save

Finally, make use of the classes under org.apache.poi.hssf.dev (especially BiffViewer) to spot what's different. Once you know that, it ought to be fairly easy to spot the bit of POI that'll know, or at least the bit of POI that could know with a tiny patch :)

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to