Results 1 to 7 of 7

Change Event with Drop Down Validation List

Threaded View

  1. #1
    Registered User
    Join Date
    09-30-2009
    Location
    Alexandria, VA
    MS-Off Ver
    Excel 2010
    Posts
    31

    Question Change Event with Drop Down Validation List

    Hi, I have 13 sheets in my workbook (one for each month plus a GlobalSettings). In each month sheet I want to create a change event that prompts a UserForm when they select "Yes" from a drop-down validation list if it happens to be a month prior to the current month. However it is not working, any help will be greatly appreciated!!!

    This is the code for the change event:
    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim Value1, Value2 As Integer
        Value1 = Sheets("P1").Range("I15").Value
        Value2 = Sheets("GlobalSettings").Range("B14").Value
        If Target.Address = "$K$14" Then
            If Range("K14") = "NO" Then
            End If
            Exit Sub
            If Range("K14") = "YES" And Value1 < Value2 Then
            UserForm2.Show
            End If
        End If
    End Sub
    Last edited by gophins; 10-03-2009 at 11:21 AM. Reason: NEW ERROR CAME UP

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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