automatic digital signature of Excel and Word Macros RRS feed

  • Question

  • Hi,

    is there a way to sign macros digitally using an automated process (preferably in c#).

    The macros to be signed are in Excel and Word documents.

    Many thanks

    Sunday, June 3, 2012 8:59 PM

All replies

  • AFAIK the VBIDE object model does not expose a method to add a digital signature programmatically. You could try SendKeys or with somewhat more work use Windows APIs to control the dialogs and replicate the manual process.

    Peter Thornton

    Tuesday, June 5, 2012 8:08 PM