Solved

Creating a digital signature for my VBA code which will be valid for our domain.

Posted on 2011-03-25
2
575 Views
Last Modified: 2012-05-11
Hi,

I've no idea if this is possible or how to achieve it.

I create Excel spreadsheets with VBA code. Primarily these are pivot style db maintenance. A recent project involves a sheet with (currently) just over 82,000 cells. The table contains a priority level between suppliers (the Y axis - rows) and customers (the X axis - columns).

There is event code behind the scenes dealing with sync changes to the DB and to correctly colour the cell as they change the value (just a single digit).

Using a spreadsheet is significantly easier for this size of data for the users. Initially they had a web app which only allows 25 suppliers on a page at once and scrolled the entire page left/right to get the different customers. A shrink wrapped app I'm rewriting. So far, so good.

One of the issues I have is that I need to sign the vba code so that the users can load the file. I use Office 2003. Different users are on 2003, 2007 and 2010.

We all operate within a domain and have Active Directory and Group Policies.

When a user loads the spreadsheet, they have to jump through several hoops to allow the macros to run. On 2003, this is fairly simple. I'm completely lost on 2010 (I don't even know how to move around the app as there is no menu - but that's another issue for me).

What I want to achieve is a way that I can sign the VBA code and all the users automatically trust it. No popups or anything. Just as if the spreadsheet had no VBA code in it at all.

Whatever I do, I'll be passing the actual work to our sysops (they are looking into this as well, but neither of us are familiar with this).

I don't mind what work I have to do as long as I don't need to visit every user and manually allow the code to run.

Regards,

Richard Quadling.
0
Comment
Question by:Richard Quadling
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 20

Accepted Solution

by:
Ardhendu Sarangi earned 500 total points
ID: 35214628
Hi Richard,

Do you have the option to purchase a digital signature from one of the commercial Certificate Authorities? If not, you can try to create your own certificate.

Here are a few links which might help you. The first link explains the different security levels in Excel 2010. The 2nd link tells you how to create a digital certificate on your own for Excel 2007 and Excel 2010.

1. http://office.microsoft.com/en-us/excel-help/change-macro-security-settings-in-excel-HP010342232.aspx#_Toc268686299
2. http://office.microsoft.com/en-us/excel-help/digitally-sign-a-macro-project-HA001231781.aspx


HTH,
Ardhendu
0
 
LVL 40

Author Comment

by:Richard Quadling
ID: 35215729
I'm looking at code signing certs.

Source                                                                                          1 Year           2 Years           3 Years        4 Years        5 Years Target
==================================================================================== ================= ================= ================= ============== ============== ============================================================
http://www.globalsign.co.uk/code-signing/code-signing-for-individual-developers.html            £69.00           £119.00           £179.00                               Individual developer
http://www.globalsign.co.uk/code-signing/                                                      £149.00           £229.00           £399.00                               Organisation
https://www.thawte.com/code-signing/index.html                                          $299 / £186.12    $549 / £341.79                                                 Microsoft Authenticode (I think this is the more modern one)
https://www.thawte.com/code-signing/index.html                                          $299 / £186.12    $549 / £341.79                                                 Microsoft Office VBA
http://www.instantssl.com/code-signing/                                                        £119.95           £227.90           £332.85
https://secure.ksoftware.net/code_signing.html                                            $99 / £61.63    $178 / £110.85    $252 / £156.93 $316 / £196.78 $371 / £231.05 Comodo/InstantSSL reseller
http://www.godaddy.com/ssl/code-signing-certificate.aspx                             $199.99 / £124.55 $359.98 / £224.21 $509.97 / £317.62

Open in new window



So far, whilst the individual developer cert from GlobalSign is pretty good (and one I may use for my own non-work work), I think the Comodo reseller KSoftware seems the cheapest.

0

Featured Post

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
In this blog we highlight approaches to managed security as a service.  We also look into ConnectWise’s value in aiding MSPs’ security management and indicate why critical alerting is a necessary integration.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question