Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Password a Macro so certain users can press it

I have a cell on my worksheet which is protected via the usual password
protect worsheet thing. However, i want to allow one person to write in
this cell my pressing a macro which allows him to do this, then lock
again after if possible? Anyone any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Password a Macro so certain users can press it

you could use an inputbox to ask for a password

--
Don Guillett
SalesAid Software

wrote in message
oups.com...
I have a cell on my worksheet which is protected via the usual password
protect worsheet thing. However, i want to allow one person to write in
this cell my pressing a macro which allows him to do this, then lock
again after if possible? Anyone any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Password a Macro so certain users can press it

This may help......

Sub EnterValueInProtectedCell()
Range("A1").Select
ActiveSheet.Unprotect Password:=("aaa")
Dim k
k = InputBox("Enter new value for cell A1:")
Range("a1").Value = k
ActiveSheet.Protect Password:=("aaa"), DrawingObjects:=True, Contents:=True,
Scenarios:=True
Range("A1").Select
End Sub


Vaya con Dios,
Chuck, CABGx3




" wrote:

I have a cell on my worksheet which is protected via the usual password
protect worsheet thing. However, i want to allow one person to write in
this cell my pressing a macro which allows him to do this, then lock
again after if possible? Anyone any ideas?


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
develop a macro which takes password protection on and off Gai Excel Discussion (Misc queries) 4 November 16th 06 06:14 AM
Password restricted single macro and button michaelberrier Excel Discussion (Misc queries) 1 June 19th 06 10:38 PM
Add protect worksheet password in macro Kelly Excel Worksheet Functions 1 January 10th 06 02:08 AM
Protect Workbook vs Worksheet?? Dan B Excel Worksheet Functions 3 November 7th 05 09:02 PM
don't allow users to assign the cntrl+s as a short cut for macro Sreenath Excel Worksheet Functions 1 November 5th 05 06:09 AM


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