Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Protecting Excel VBA app with a COM AddIn

Posted on 2011-02-21
4
Medium Priority
?
316 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
[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
  • 2
4 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 2000 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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

670 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