Multiple values in Private Sub Worksheet_Change(ByVal Target As R

D

davemon

I've made it this far, but I need a little help. I've written the following
but I
would also like to look at column O for a value of "Trade".

Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Range("q:q"), Target) Is Nothing Then
If Target.Value = "r" Or _
Target.Value = "w" Then
Range("t" & Target.Row).Select
End If
End If
End Sub
 
D

Duke Carey

In the same row?? If so:

If Target.Value = "r" Or Target.Value = "w" Then
if target.offset(0,-2).value = "Trade" then
Range("t" & Target.Row).Select
else
' what do you do if it isn't trade?
end if
End If
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top