Do you sign your VBA projects?

October 26, 2009 @ 7:00 AM by JP • 1 views • No Comments »


    Informal poll: Does anyone out there sign their code?

    I'll admit, I do it, but only when I'm working on a serious application or add-in, and need to open and close the workbook a lot. The macro warning gets annoying after 10 or 20 times, so I sign the code to stop it and get straight to work.

Verisign offers digital signatures for a fee. All you have to do is set up an account and they sell you one. Seems counterintuitive to me; if you can just pick one up, so can anyone else. That makes a digital signature from Verisign no different than a self-signed project, except you're not short 500 dollars. Or maybe I just don't get it.

    I think there should be some kind of informal group of VBA developers, and we could all pitch in and buy a digital cert from Verisign. That would probably require a corporation, which would make it a formal group. That definitely takes the fun out of the idea.

    If you do sign your code, do you use a self-created certificate (a la SELFCERT.EXE) or do you use one from Verisign or another authority? If the latter, who paid for it? Do you find any benefits from it over self-signed code?

About JP
I'm just an average guy who writes VBA code for a living. This is my personal blog. Excel and Outlook are my thing, with a sprinkle of Access and Word here and there. Follow this space if you want to learn more about VBA (or subscribe via email). Keep Reading »


Previous Post:

Next Post:

13 Response(s) to Do you sign your VBA projects? ↓

  1. Jon Peltier says:

    I've never signed my projects. I looked into this, but I wasn't ready to pony up the $500. No client has ever asked me to sign a project, either.

    • JP says:

      Is that because you're mostly writing add-ins which don't need to be signed?

      • Jon Peltier says:

        If the customer doesn't require it, then it doesn't "need to be signed".

        What does need to be signed?

        • JP says:

          I was referring to the fact that add-ins, by their nature, don't bring up the macro warning. But if you produce sample workbooks (like the ones I put up on this site), users will get the macro warning (unless they've decided to trust my self-signed code) ;)

  2. sam says:

    I would have loved this feature if it prevented users from altering a signed file…or allow alter but stop working once altered. Whats the use of a warning! its neither here nor there

  3. Jon Peltier says:

    Now I see what you mean.

    You can sign workbooks to avoid the macro warning, or you could put the workbooks into a trusted location.

    Or you can just click Enable every time, like I do. This never seemed like such a big deal.

  4. I tried self signing for a short while. Then I renamed a folder or something and it got all screwed up. I gave it up after that.

  5. Andrew says:

    I thought about it and figured if "they" want my code to run, they'll just have to trust me. Or it could be a very long wait :-)

  6. JP says:

    Thanks for sharing, guys.

  7. Gordon says:

    No way would my company pony up $500 for a third-party cert, but I did try selfcert.exe a while back, if only to get round the 'moved/rebuilt PC needing macro settings changed from high to medium' problem.

    The trouble I found is that the certificate itself generates user dialogs and, after hammering into folk about enabling macros for years, it only seemed to confuse the poor dears when presented with another dialog.

    I gave up.

  8. Chandoo says:

    what is signing? :P

    I have been using "enable macros" button, though it seems annoying after a few times.

    JP, may be you can educate us on how to self-sign projects (and add-ins) and what the best practices are in a follow up post…

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!

Certain comments (including first-time comments) are subject to moderation and will not appear immediately. Please view the Comment Policy for more information. To post VBA code in your comment, use tags like this: [cc lang='vb']Code goes here[/cc].



Subscribe without commenting

Site last updated February 8, 2010 @ 9:42 pm; This content last updated October 26, 2009 @ 7:00 am