Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default protecting macro code

Yes, I know that this is a subject frecuently asked, in fact, i want to
ask something related to a previous post

from
http://groups.google.com/group/micro...ca7c178874a1d2


2. steve
Sep 17 2003, 3:24 pm show options
Newsgroups: microsoft.public.excel.programming
From: "steve"
Date: Wed, 17 Sep 2003 11:22:13 -0700
Local: Wed, Sep 17 2003 3:22 pm
Subject: protecting excel macros from being changed/ seen by user


Jon,


Go to the VBE


From the Tools menu protect the project with a password and save.


The next time the workbook is opened it will require a password to view
the code.


But remember a serious "hacker" can get in...


How can a "serious hacker" get the data? I mean, just playing a little
bit with an hex editor or what?

I used to program in Visual Basic years ago, and I remember that there
were something called OCX controlls(compiled code), wich can be embebed
into any MS office application. Are them still there in VB net?

regards- jm

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default protecting macro code


Go to the VBE


From the Tools menu protect the project with a password and save.


The next time the workbook is opened it will require a password to view
the code.


But remember a serious "hacker" can get in...


How can a "serious hacker" get the data? I mean, just playing a little
bit with an hex editor or what?


Yes - easy to find the method with a little googling


I used to program in Visual Basic years ago, and I remember that there
were something called OCX controlls(compiled code), wich can be embebed
into any MS office application. Are them still there in VB net?


In VB or VB.net you could wrap your code into a dll and use that from within
Excel. That would be much more secure than VBA.

Tim


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default protecting macro code

Another possible solution: obfuscate (= replace with functionally
equivalent, but very hard to understand) the VBA code within the
workbook.

Invisible Basic is an Excel Add-in for obfuscating the VBA code within
Excel workbooks. Using its "Save Invisibly As" command, you can create
a copy of your workbook whose code is obfuscated. That way, even if
they crack your password, all they will see is really ugly,
inscrutable, code.

It's free and open source and available at:

http://invisiblebasic.sourceforge.net/

Creating a separately compiled component likely is more secure, but
this approach is a lot easier (no separate compiler required). This is
a relatively new Addin and I'd very much appreciate any feedback on the
product the Excel/VBA brain trust associated with this newsgroup could
provide.

John

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Protecting buttons with VB code rather than protecting sheets/books? StargateFanFromWork Excel Programming 2 July 16th 04 04:03 PM
protecting vba code and unprotecting using a vba macro iain Excel Programming 0 June 29th 04 04:59 PM
Hiding/Protecting the code of macro Mario[_6_] Excel Programming 6 January 15th 04 09:06 PM
Protecting VBA Code steve Excel Programming 0 August 28th 03 09:13 PM
protecting macro code John Wilson Excel Programming 0 July 23rd 03 04:06 PM


All times are GMT +1. The time now is 11:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"