Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kcdonaldson
 
Posts: n/a
Default Password visible if user selects "view code"

I recently added a command button to a worksheet to validate a timestamp. my
document is password protected but if the user selects edit from the control
toolbar and then right clicks and selects view code, they are able to see the
password. Is there anyway i can edit this so that they will not be able to do
this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default Password visible if user selects "view code"

You must protect the VBA Project, not just the document.

With your workbook open hit ALT + F11 to go to VBEditor.

Select you workbook/project and right-clickVBA Project Properties

Click Protection tab and "locke project for viewing".

Enter a password.

You must now save and close the workbook.

When you re-open "View Code" will bring up a password dialg box.


Gord Dibben Excel MVP

On Fri, 2 Dec 2005 14:38:04 -0800, "kcdonaldson"
wrote:

I recently added a command button to a worksheet to validate a timestamp. my
document is password protected but if the user selects edit from the control
toolbar and then right clicks and selects view code, they are able to see the
password. Is there anyway i can edit this so that they will not be able to do
this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chris Lavender
 
Posts: n/a
Default Password visible if user selects "view code"

Open VB Editor (ALT+F11), right-click the VBA project title in the project
window Properties Protection. Check the 'Lock project for viewing'
box and add a password. Save project

HTH Best rgds
Chris Lav


"kcdonaldson" wrote in message
...
I recently added a command button to a worksheet to validate a timestamp.

my
document is password protected but if the user selects edit from the

control
toolbar and then right clicks and selects view code, they are able to see

the
password. Is there anyway i can edit this so that they will not be able to

do
this?



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
Protect Workbook vs Worksheet?? Dan B Excel Worksheet Functions 3 November 7th 05 09:02 PM
Required multiple user name and password logins for database query ISTech Excel Discussion (Misc queries) 0 August 22nd 05 09:53 PM
tried using SUBTOTAL function (XL XP) and it doesn't seem to work JethroUK© New Users to Excel 12 August 22nd 05 07:33 PM
Tabs not visible for one user [email protected] Excel Discussion (Misc queries) 2 August 15th 05 04:55 AM
Password Issue keithl816 Excel Discussion (Misc queries) 6 July 10th 05 06:20 PM


All times are GMT +1. The time now is 08:50 PM.

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"