Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Is it possible to password protect an OLE object on a sheet?

Hello, please help if you can. I am using VBA in Excel XP with Windows 2000

I have a form on a protected spreadsheet that includes some ActiveX drop down controls
One of these controls will have only three choices, "Blank", "Approve" or "Deny".

I want to make only this particular control password protected so that only specific users can access it

Is this possible? Any other suggestions

Thanks much in advance for your assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 93
Default Is it possible to password protect an OLE object on a sheet?

I don't think you can protect access to a control using password. The usual technique is either to hide the control (visible = false) or to disable it (enabled = true)

Now all you need is to identfy the user. In a Workbook_open macro, you can identify the current user with application.Username. If the user does not qualify, hide or disable the control

Better still: Save your workbook with those controls hidden or disabled (ensure that the controls are in an appropriate state). In the Workbook_Open event macro, check the user name and enable if appropriate.
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 protect a sheet Joe Excel Discussion (Misc queries) 5 October 27th 08 11:14 PM
Forgot my password to protect the sheet Suz Excel Discussion (Misc queries) 4 September 14th 07 05:48 PM
Protect sheet without password? EllenM Excel Discussion (Misc queries) 2 June 21st 07 03:22 PM
Password Protect a Sheet Lynn Excel Discussion (Misc queries) 1 October 27th 06 03:41 PM
Password protect a sheet without Macros Cappa Excel Discussion (Misc queries) 3 May 27th 06 01:49 AM


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