#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Lock Drop down Menu

Hello!
I made a drop down menu(DataValidation...), I want that menu to be locked
after a specific value is chosen from the list,
There is 3 options :
1-Open
2-Closed
3-On Hold

I want the cell to be locked after "closed" is choosen, and one more thing I
want colors !
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Lock Drop down Menu

Hi Mubarak

1----By locking if you mean not to allow the user to change the value then
try the below macro. Right click the sheet tab, View code and paste the code.
I am assuming you have the drop down in Column D

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("D:D")) Is Nothing Then
If Target.Text = "Closed" Then Target.Offset(, 1).Select
End If
Application.EnableEvents = True
End Sub

2----For coloring the status use Conditional Formatting. Selec1. Select the
column/Range. From menu FormatConditional Formatting
For Condition1Select 'Cell value' select 'equal to' enter 'Closed'. Click
Format ButtonPattern and select your color. You can add condition2 and
condition 3 for the other status if you need.. and once done Hit OK.


If this post helps click Yes
---------------
Jacob Skaria


"Mubarak" wrote:

Hello!
I made a drop down menu(DataValidation...), I want that menu to be locked
after a specific value is chosen from the list,
There is 3 options :
1-Open
2-Closed
3-On Hold

I want the cell to be locked after "closed" is choosen, and one more thing I
want colors !

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Lock Drop down Menu


Dear Jacob,

In case I want to re-open the locked ticket whats the needed code

Thanks in Advance

"Jacob Skaria" wrote:

Hi Mubarak

1----By locking if you mean not to allow the user to change the value then
try the below macro. Right click the sheet tab, View code and paste the code.
I am assuming you have the drop down in Column D

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
If Not Application.Intersect(Target, Range("D:D")) Is Nothing Then
If Target.Text = "Closed" Then Target.Offset(, 1).Select
End If
Application.EnableEvents = True
End Sub

2----For coloring the status use Conditional Formatting. Selec1. Select the
column/Range. From menu FormatConditional Formatting
For Condition1Select 'Cell value' select 'equal to' enter 'Closed'. Click
Format ButtonPattern and select your color. You can add condition2 and
condition 3 for the other status if you need.. and once done Hit OK.


If this post helps click Yes
---------------
Jacob Skaria


"Mubarak" wrote:

Hello!
I made a drop down menu(DataValidation...), I want that menu to be locked
after a specific value is chosen from the list,
There is 3 options :
1-Open
2-Closed
3-On Hold

I want the cell to be locked after "closed" is choosen, and one more thing I
want colors !

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
How do I lock a drop down cell so only drop down entries can be e. OrlaLynch Excel Discussion (Misc queries) 5 April 4th 23 10:22 AM
Drop dwn menu. Formula to count selection frm menu in anoth cell? ggoldber Excel Worksheet Functions 1 June 4th 08 02:21 PM
filter dropdown menu so 2nd drop menu is customized menugal Excel Worksheet Functions 1 September 4th 07 05:25 PM
Lock all menu tabs Jithu Excel Discussion (Misc queries) 3 May 29th 07 04:44 AM
Cross-referenced drop-down menu (nested drop-downs?) creativeops Excel Worksheet Functions 4 November 22nd 05 05:41 PM


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