+ Reply to Thread
Results 1 to 2 of 2

ChangeEvent

  1. #1
    Shawn
    Guest

    ChangeEvent


    Here is what I want. If a person types "yes" in any of cells A1:A10 then I
    want the adjacent cell to the right to change to the value "red".

    For example, if they type yes in cell A3 then cell B3 would automatically
    change to the value "red".


    --
    Thanks
    Shawn

  2. #2
    Jim Thomlinson
    Guest

    RE: ChangeEvent

    It would probably be easiest to use a formula but here it is with Change code

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Not (Intersect(Target, Range("A1:A10")) Is Nothing) Then
    If UCase(Trim(Target.Value)) = "YES" Then Target.Offset(0, 1).Value
    = "Red"
    End If
    End Sub
    --
    HTH...

    Jim Thomlinson


    "Shawn" wrote:

    >
    > Here is what I want. If a person types "yes" in any of cells A1:A10 then I
    > want the adjacent cell to the right to change to the value "red".
    >
    > For example, if they type yes in cell A3 then cell B3 would automatically
    > change to the value "red".
    >
    >
    > --
    > Thanks
    > Shawn


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1