Solved

Protecting Excel VBA app with a COM AddIn

Posted on 2011-02-21
4
296 Views
Last Modified: 2012-05-11
I want to protect my VBA code from piracy (so that I can safely give a demo to a prospective client).

I thought about putting some of the code in a COM AddIn, so that it can expire on a date, or even check for Activation online. I can do both these in VBA but would like an example (tut or a book ref) for

(1) converting my VBA to a COM AddIn.
(2) procedure for my client installing the Addin - is there a wizard I can create like when you install a tool for Excel that times out after 7 days, say.

Please point me in a suitable direction.

(I have VB6 if that helps but not an avid VB6 programmer. VBA yes)

If this is easier with .NET any pointers on that would be useful too. Got VS2010 (novice).


Thanks people!
0
Comment
Question by:hindersaliva
  • 2
  • 2
4 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 34943739
See Chip's article here: http://www.cpearson.com/excel/ComAddInInVB6.htm
You can also (I think) still find samples on MSDN.
0
 

Author Comment

by:hindersaliva
ID: 34943796
Oh WOW! That was so quick and straight to the point.
I shall work through that. (and thanks Chip)

Any views on a VB.NET equivalent? or is that not an easy?

Thanks
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 34943836
I can't say that I've done all that much .Net stuff, but if you're building a COM add-in, I can't see much point in using .Net
0
 

Author Comment

by:hindersaliva
ID: 34943872
Yes thanks Rory. Just curious.
I was wondering if VSTO has anything useful in that direction.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

840 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