Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 662763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:24:51+00:00 2026-05-13T23:24:51+00:00

Is there a way to automate code signing a VBA project in a Word

  • 0

Is there a way to automate code signing a VBA project in a Word 2003 and/or Word 2007 document?

By automate I mean via a command line utility or via Word VBA automation?

Motivation: I would like to code sign several Word templates as part of an automated daily build and distribution cycle. Right now we have to do this manually by opening each document in Word and resigning.

Thank you,
Malcolm

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:24:51+00:00Added an answer on May 13, 2026 at 11:24 pm

    I do not believe there is an automated way to do this because it would defeat the security of code-signing VBA Project signing.

    The two message digests are compared,
    and if any part of the file has been
    modified or corrupted, the digests
    will not match and the contents of the
    file can’t be trusted. The
    verification process will fail
    regardless of how the file was
    modified – whether through corruption,
    a macro virus, or programmatic changes
    made by an add-in or Office solution.
    The verification process will also
    fail if the file wasn’t signed with a
    valid certificate; that is, if the
    certificate had expired, or had been
    forged, altered, or corrupted. If
    another user modifies the VBA project,
    the Office 2000 application removes
    the current signature and prompts the
    user to re-sign the VBA project; if
    the user doesn’t sign the VBA project
    or signs it with another certificate,
    the file may fail the verification
    process.

    Inserted from
    http://msdn.microsoft.com/en-us/library/aa190113(office.10).aspx

    Code signing has the additional level of security in the fact that a developer must compile source code. A macro is not compiled and can be distributed as text. Therefore, automating macro signing would open a large security hole. Manually siging a macro is similar to Outlook prompting the user to allow programmatic access to the address book.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to generate project docs during automated builds? I'd like to
Is there way in next piece of code to only get the first record?
I'm trying to find a way to automate some exception logging code to add
Is there a way via metadata (Information_Schema, perhaps?) to get a list of the
Is there a way to automate the process of creating a chart within a
Is there a way set flags on a per-file basis with automake? In particular,
is there way thats i can preselect an item when the page loads or
Is there a way to enforce constraint checking in MSSQL only when inserting new
Is there any way to check whether a file is locked without using a
Is there a way to find the name of the program that is running

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.