Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Protecting Code in Visual Basic Editor (Excel 2003)

I have 4 protected sheets in a workbook with a little vb code behind them which
includes sheet passwords. A user could click on menu bar and add VB Editor
and
then click on code module and see everything. Any way to hide all that ?
--
Johnny S.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,365
Default Protecting Code in Visual Basic Editor (Excel 2003)

Yes (and no).
First, the YES part: Open up the workbook and the VB Editor. From the VB
Editor menu choose Tools | VBAProject Properties and then go to the
[Protection] tab on the dialog that opens. Hide the project and enter a
password to be required to view the project later. Either write that
password down somewhere safe or keep a copy of the workbook that doesn't have
the VBA Project protected.

Now the NO part: even though the password protection for the VBA Project is
stronger than for the worksheets and/or workbook, it can still be bypassed
fairly easily with numerous tools, free and for-purchase. But it will keep
the 'casually curious' out of your code.

Another thing you can do is to create your own digital signature and sign
the project. Then if someone does get into the code and edit it, that
signature will be removed and that will clue you in about that later. But
again, there's a weakness in that self-signed signatures can be 'forged', so
it's another tool that can potentially be circumvented. Search the regular
Excel help for
create your own digital certificate
for information on how to create one and use it.

"Johnny S. NH" wrote:

I have 4 protected sheets in a workbook with a little vb code behind them which
includes sheet passwords. A user could click on menu bar and add VB Editor
and
then click on code module and see everything. Any way to hide all that ?
--
Johnny S.

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
Password in Visual basic editor Tia[_3_] Excel Worksheet Functions 0 July 11th 08 08:40 AM
Visual Basic Editor - Time and Date Entry Continued Tammy Excel Worksheet Functions 2 January 4th 08 03:49 PM
Visual Basic Editor opens bi itself KG Excel Discussion (Misc queries) 0 September 15th 07 04:02 PM
Printing with Visual Basic Editor Problem Meader Excel Discussion (Misc queries) 3 May 30th 07 08:55 PM
Visual basic editor Answerfactory Excel Discussion (Misc queries) 3 October 9th 06 09:13 PM


All times are GMT +1. The time now is 05:39 AM.

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"