Results 1 to 2 of 2

Trigger Code by Dropdown

Threaded View

  1. #1
    Registered User
    Join Date
    09-06-2013
    Location
    Champaign, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    7

    Trigger Code by Dropdown

    Hey everyone,

    I have a VBA Code which moves the entire row to the second worksheet if it contains the word "Closed" in column A. I was wondering if someone could help me make the code refer to a drop down list which I will create. For some reason, when I create the drop down list for Column A, the code no longer works. Below is the code.

    Private Sub Worksheet_Change(ByVal Target As Range)
     If Intersect(Target, Range("A2:A9")) Is Nothing Then Exit Sub
     If Target.Count > 1 Then Exit Sub
     If Target = "" Then Exit Sub
     Dim NR As Long
     With Application
     .EnableEvents = False
     .ScreenUpdating = False
     Select Case Target.Value
     Case "Closed"
     Range("A" & Target.Row & ":M" & Target.Row).Copy Worksheets("Completed").Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
     Target.EntireRow.Delete Shift:=xlUp
     End Select
     .EnableEvents = True
     .ScreenUpdating = True
     End With
     End Sub
    Any help would be greatly appreciated!

    Thanks!
    Last edited by rachaelgoldman1; 09-06-2013 at 10:36 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Need urgent help with error! Urgent!
    By heidenman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2009, 04:31 AM
  2. Urgent-Urgent VBA LOOP
    By Jeff in forum Excel General
    Replies: 0
    Last Post: 10-06-2005, 01:05 PM
  3. *URGENT*
    By Stacy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  4. [SOLVED] *URGENT*
    By Stacy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  5. [SOLVED] not urgent
    By Gary's Student in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-31-2005, 01:05 PM

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