Solved

Protecting Excel VBA app with a COM AddIn

Posted on 2011-02-21
4
304 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

685 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