Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Selected dropdown value pushes to other cells

Am currently working up a workflow checklist with various drop down cells for
each task. One column the worksheet is a risk level with Data Validated
options of High, Medium, Low or N/A. Other columns indicate item status,
action by, etc.

What I want to happen is that when someone selects N/A in the risk column
(eg E24) the other columns (eg G24, H24 and I24) default to N/A as well
otherwise they allow selction from other dropdown lists. Don't have much
experience with VB but willing to give it a go if needed.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,480
Default Selected dropdown value pushes to other cells

Hi Matthew

The following should get you started.
I have assumed you don't want it to apply to rows before 24, but to any row
from 24 onward

Private Sub Worksheet_Change(ByVal Target As Range)
Dim tr As Long, tc As Long
tr = Target.Row
tc = Target.Column

If Target.Count 1 Then Exit Sub
If tr < 24 Then Exit Sub
If tc < 5 Then Exit Sub

If UCase(Cells(tr, 5)) = "N/A" Then
Application.EnableEvents = False
Range(Cells(tr, 7), Cells(tr, 9)) = "N/A"
Application.EnableEvents = True
End If

End Sub

To use
Copy code
Right click on sheet where you want the codeView code
Paste the code into the white pane that appears
Alt + F11 to return to Excel

--
Regards
Roger Govier

"Matthew Johnson" wrote in
message ...
Am currently working up a workflow checklist with various drop down cells
for
each task. One column the worksheet is a risk level with Data Validated
options of High, Medium, Low or N/A. Other columns indicate item status,
action by, etc.

What I want to happen is that when someone selects N/A in the risk column
(eg E24) the other columns (eg G24, H24 and I24) default to N/A as well
otherwise they allow selction from other dropdown lists. Don't have much
experience with VB but willing to give it a go if needed.

__________ Information from ESET Smart Security, version of virus
signature database 4805 (20100125) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 4805 (20100125) __________

The message was checked by ESET Smart Security.

http://www.eset.com




__________ Information from ESET Smart Security, version of virus signature database 4810 (20100127) __________

The message was checked by ESET Smart Security.

http://www.eset.com



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
Triggering an action when an item is selected from a dropdown menu Xonnel1212 Excel Worksheet Functions 1 July 2nd 09 12:17 AM
Microsoft pushes S+S vision abhi Excel Worksheet Functions 0 October 30th 08 02:29 PM
How do I show a value for selected text from a dropdown list? Matt Excel Discussion (Misc queries) 2 January 4th 07 06:49 AM
items disappearing from pivot dropdown when not selected confused Excel Worksheet Functions 1 July 19th 06 02:42 PM
Have 2 items in dropdown, want warning if one selected movermike Excel Worksheet Functions 1 November 24th 05 02:20 AM


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