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

I have a subroutine to automate update functions. Several
users need to run the code, so it is assigned to a
keyboard shortcut.

The sheets are protected. I unprotect in the code and then
turn protection back on.

Can I hide the vba code from my users, so they cannot see
the protection password?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Hiding VBA code

HI David, Open up your VBA and from the Menu select Tools VBA Project
Properyies Chselect the Protection Tab and Check the box marked "Lock
Project for Viewing. Enter and confirm a password and your away.

Regards

Fred


"David Wooddall-Gainey" wrote in message
...
I have a subroutine to automate update functions. Several
users need to run the code, so it is assigned to a
keyboard shortcut.

The sheets are protected. I unprotect in the code and then
turn protection back on.

Can I hide the vba code from my users, so they cannot see
the protection password?

TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Hiding VBA code

David,

Go into the VBE. Select the Tools menu and VBAProjectProperties.
Protect with a password (don't forget this word). Save.

Once the workbook is closed and reopened, you can only get to the code if
you have the password.

Do remember that power users may be able to "crack" your password. Excel is
not known to be that secure. But VBA passwords are a little harder to
crack.

--
sb
"David Wooddall-Gainey" wrote in message
...
I have a subroutine to automate update functions. Several
users need to run the code, so it is assigned to a
keyboard shortcut.

The sheets are protected. I unprotect in the code and then
turn protection back on.

Can I hide the vba code from my users, so they cannot see
the protection password?

TIA



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Hiding VBA code

Thanks!


-----Original Message-----
HI David, Open up your VBA and from the Menu select Tools
VBA Project
Properyies Chselect the Protection Tab and Check the box

marked "Lock
Project for Viewing. Enter and confirm a password and

your away.

Regards

Fred


"David Wooddall-Gainey" wrote in message
...
I have a subroutine to automate update functions.

Several
users need to run the code, so it is assigned to a
keyboard shortcut.

The sheets are protected. I unprotect in the code and

then
turn protection back on.

Can I hide the vba code from my users, so they cannot

see
the protection password?

TIA



.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Hiding VBA code

Ur welcome!

--
sb
"David Wooddall-Gainey" wrote in message
...

Thx

-----Original Message-----
David,

Go into the VBE. Select the Tools menu and

VBAProjectProperties.
Protect with a password (don't forget this word). Save.

Once the workbook is closed and reopened, you can only

get to the code if
you have the password.

Do remember that power users may be able to "crack" your

password. Excel is
not known to be that secure. But VBA passwords are a

little harder to
crack.

--
sb
"David Wooddall-Gainey" wrote in message
...
I have a subroutine to automate update functions.

Several
users need to run the code, so it is assigned to a
keyboard shortcut.

The sheets are protected. I unprotect in the code and

then
turn protection back on.

Can I hide the vba code from my users, so they cannot

see
the protection password?

TIA



.



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 baz Excel Discussion (Misc queries) 4 May 5th 10 05:51 PM
Hiding VB Code johnsail Excel Discussion (Misc queries) 6 March 9th 09 07:53 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
hiding vba code Richard Choate Excel Programming 0 July 17th 03 08:33 PM


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