+ Reply to Thread
Results 1 to 3 of 3

Macro Runs Selection is Made from Validation List

  1. #1
    Registered User
    Join Date
    03-21-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    90

    Macro Runs Selection is Made from Validation List

    I need some help here. This macro worked for me but when I try to change the cell reference (ex: "F36" to "F35") the macro doesn't work when "Yes,No, or N/A" is selected. Can someone please help me. Thanks! The "Yes, No, or N/A" is a validation list that I used.


    <Code>
    Sub OffshoreInput2()

    If Worksheets("O & M").Range("F35") = "Yes" Then
    Worksheets("Offshore_Input").Range("M36:M37").Interior.ColorIndex = 4
    End If

    If Worksheets("O & M").Range("F35") = "No" Then
    Worksheets("Offshore_Input").Range("M36:M37").Interior.ColorIndex = 1

    End If

    If Worksheets("O & M").Range("F35") = "N/A" Then
    Worksheets("Offshore_Input").Range("M36:M37").Interior.ColorIndex = 0

    End If


    End Sub
    </code>

  2. #2
    Registered User
    Join Date
    03-21-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    90

    Re: Macro Runs Selection is Made from Validation List

    I need some help here. This macro worked for me but when I try to change the cell reference (ex: "F36" to "F35") the macro doesn't work when "Yes,No, or N/A" is selected. Can someone please help me. Thanks! The "Yes, No, or N/A" is a validation list that I used.


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-21-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    90

    Re: Macro Runs Selection is Made from Validation List

    Nevermind I found my error.

+ 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