LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Worksheet Change help please

I need to be able to do the following, if possible:

Columns P:T have drop down validation boxes in them, if the user selects
"Cr" from the list in any of these 5 columns and the value in column B is 1
then I want "Yes" entered into column V.
Also, if the value selected is not "Cr" and column B is 1 then I would like
"No" entered in column V.

This is what I was trying, but with no luck:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 16 Or Target.Column <= 20 Then
If Target.Value = "Cr" And '(not sure how to reference column B and
target row).Value = 1 Then
'(not sure how to reference column V on target row).Value = "Yes"
ElseIf Target.Value < "Cr" And '(not sure how to reference column B and
target row).Value = 1 Then
'(not sure how to reference column V on target row).Value = "No"
End If
End If
End Sub

Many thanks in advance.

Gareth



 
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 to change the pivot chart automaticaly as values in the worksheet change Vinay Vasu Excel Worksheet Functions 0 May 3rd 10 04:25 PM
change formula in a shared worksheet without losing change history DCE Excel Worksheet Functions 5 July 25th 08 01:37 PM
Change Cell from Validated List Not Firing Worksheet Change Event [email protected] Excel Programming 3 October 4th 04 03:00 AM
Worksheet change Andrew Haycock Excel Programming 2 September 8th 03 11:38 AM


All times are GMT +1. The time now is 07:27 PM.

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"