#1   Report Post  
Posted to microsoft.public.excel.misc
Baz Baz is offline
external usenet poster
 
Posts: 14
Default Hiding VB Code

I am using Windows XP and Excel 2002.

I have written a small code in THIS WORKBOOK.
I want to know if there is a way to protect anyone else from going into VB
editor and seeing the code? I'd like to make it not visible except to me or
by password just for the code.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Hiding VB Code

Baz,

In VB editor click the TOOLS menu, Project properties, Protection tab and
set a password.

--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"baz" wrote:

I am using Windows XP and Excel 2002.

I have written a small code in THIS WORKBOOK.
I want to know if there is a way to protect anyone else from going into VB
editor and seeing the code? I'd like to make it not visible except to me or
by password just for the code.

Thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Hiding VB Code

Open excel
open your workbook
Open the VBE (alt-f11 is a quick way)
hit ctrl-r to see the project explorer
select your workbook's project
Tools|VBAProject Properties|protection tab
Lock it from viewing and give it a memorable password.

Save the workbook, close it and reopen it to verify that it does what you want.

Be aware that this password like any other password can be broken by anyone who
wants to badly enough.

baz wrote:

I am using Windows XP and Excel 2002.

I have written a small code in THIS WORKBOOK.
I want to know if there is a way to protect anyone else from going into VB
editor and seeing the code? I'd like to make it not visible except to me or
by password just for the code.

Thanks in advance.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Hiding VB Code

From VBE check out menu ToolsWorkbook PropertiesProtection tab

--
Jacob (MVP - Excel)


"baz" wrote:

I am using Windows XP and Excel 2002.

I have written a small code in THIS WORKBOOK.
I want to know if there is a way to protect anyone else from going into VB
editor and seeing the code? I'd like to make it not visible except to me or
by password just for the code.

Thanks in advance.

  #5   Report Post  
Posted to microsoft.public.excel.misc
Baz Baz is offline
external usenet poster
 
Posts: 14
Default Hiding VB Code

Thank you Mike and Jacob. Truly appreciated and it is so simple.

baz

"Jacob Skaria" wrote:

From VBE check out menu ToolsWorkbook PropertiesProtection tab

--
Jacob (MVP - Excel)


"baz" wrote:

I am using Windows XP and Excel 2002.

I have written a small code in THIS WORKBOOK.
I want to know if there is a way to protect anyone else from going into VB
editor and seeing the code? I'd like to make it not visible except to me or
by password just for the code.

Thanks in advance.

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
Hiding VB Code johnsail Excel Discussion (Misc queries) 6 March 9th 09 07:53 PM
need code for hiding/unhiding sheets using checkboxes pzx8hf Excel Worksheet Functions 1 August 13th 08 12:11 AM
Hiding a button when hiding rows fergusor Excel Discussion (Misc queries) 2 August 10th 06 02:31 PM
How to code Macro for hiding rows Catherine Bond Excel Worksheet Functions 4 June 24th 06 10:13 AM
Hiding Code Jae Excel Discussion (Misc queries) 3 August 10th 05 08:10 PM


All times are GMT +1. The time now is 03:41 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"