Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Adding Sheet Invalidates Digital Signature

Hi Simon,

The only approach I can see that can fit your described requirements at this
time is to create a separate control file (Signed) to open the working file
(Not Signed). The control file can include a workbook open event to open
the working file - taking advantage of the default msoAutomationSecurityLow.

I agree this is only a work around to a real problem.

Best Regards,
Walt Weber


"Simon" wrote:

(see various posts on this subject in this group - all without any fix)

Simply put, any macro in a signed excel project that adds or deletes a sheet
will invalidate the digital signature causing macros to be disabled next time
the workbook is loaded. Thsi seems to apply to Office XP and 2003 at least.

It appears that the digital signature includes not only the VBA code
modules, classes, etc. but also the sheets collection! This is particularly
annoying as the sheets I'm adding (copy from existing hidden 'template'
sheet) don't contain any code and this bug/feature isn't documented anywhere
I could find.
Obviously, changing the contents of a sheet is possible without invalidating
the signature. How is adding a sheet any different? Maybe the hashing
algorithm assumes that each sheet always has a code segment and always
includes it - even though it is empty? Is there some way I can ensure that my
template sheet is code-free and therefore always excluded from the hashing?
I've tried a workbook cleaning utility but that didn't help.

Any suggestions (that don't involve COM or add-ins) or even a patch to Excel
from Microsoft would be very welcome.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Signature padjo Excel Discussion (Misc queries) 4 June 13th 11 07:29 AM
Adding Sheet Invalidates Digital Signature Stuart[_21_] Excel Programming 0 May 5th 05 04:51 PM
Adding Sheet Invalidates Digital Signature Mexage Excel Programming 0 May 5th 05 04:14 PM
Adding digital signature programmatically ril Excel Programming 2 December 1st 04 08:16 AM
how to get the digital signature for my excel sheet? kvenku[_25_] Excel Programming 1 June 24th 04 01:08 AM


All times are GMT +1. The time now is 04:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"