Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 550
Default How to hide sheets and VBA code in my Excel workbook?

Greg,

To password protect the code, go to the VBA Editor
Tools/Project Properties/Protection
check "lock project for viewing" and enter a password.
While doing this may thwart the casual user, someone
proficient in Excel (or just about anyone with access to
these ng's or Google) can find methods to unprotect
your project and view the code.

You mentioned hiding sheets.
You can do this via VBA by making the sheets "VeryHidden"
(meaning that they won't appear on the Format/Sheet/Unhide
menu). Again, if the user does get into your code, they'll
be able to unhide the sheets.

In summary, you can do what what you asked but it's not as
secure as it might seem. It all depends on the knowledge
and expertise of the user(s) that you're trying to protect
your work from.

John

"Greg_Del_Pilar" wrote in message
. ca...
Hello!

I write VBA code to automate certain functions in my Excel file, and I use

a
lot of "template" sheets to generate charts and save them as a new xls

file.
My client wants to run my programs on their site, which requires that I

give
them a copy of the main Excel workbook that contains my templates and VBA
code. Is there any way for me to hide them so that my client cannot copy

my
code? Ideally, I want to be able to password-protect everything in my

file.
(The client really just has to press the keyboard shortcut --- CTRL-M ---

to
run my main routine.).

Thanks for your help.

Greg




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
Code to hide sheets Tia[_3_] Excel Worksheet Functions 0 July 8th 08 11:07 AM
how do I hide scroll bars on specific sheets within a workbook AzMan Excel Discussion (Misc queries) 2 October 29th 07 12:36 PM
How to repeat a code for selected sheets (or a contiguous range of sheets) in a Workbook? Dmitry Excel Worksheet Functions 6 March 29th 06 12:43 PM
VBA Code To have a macro repeat on all sheets in a workbook carl Excel Worksheet Functions 3 November 3rd 05 07:48 PM
How to hide sheets and VBA code in my Excel workbook? Rick[_13_] Excel Programming 0 August 26th 03 04:01 AM


All times are GMT +1. The time now is 01:49 AM.

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

About Us

"It's about Microsoft Excel"