+ Reply to Thread
Results 1 to 1 of 1

Multiple entries from drop down tab

  1. #1
    Registered User
    Join Date
    07-23-2009
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2007
    Posts
    1

    Multiple entries from drop down tab

    I need to be able to select multiple entries from a drop down tab that references a named list elsewhere in the workbook. I am able to get the drop down tab to funtion, however it refuses to project those selections into a different cell, or select multiple entries from the list. I have tried several test codes posted on various forums, however when I copy that code over to my spreadsheet, it does not work. I can provide the specific files if need be.
    heres the code im currently using on the sheet with the drop down


    Option Explicit

    Private Sub Worksheet_Change(ByVal Target As Range)
    On Error GoTo exitHandler

    Dim rngDV As Range
    If Target.Count > 1 Then GoTo exitHandler

    On Error Resume Next
    Set rngDV = Cells.SpecialCells(xlCellTypeAllValidation)
    On Error GoTo exitHandler
    If rngDV Is Nothing Then GoTo exitHandler
    If Intersect(Target, rngDV) Is Nothing Then
    'do nothing
    Else
    Application.EnableEvents = False
    If Target.Column = 3 Then
    If Target.Value = "" Then GoTo exitHandler
    If Target.Offset(0, 1).Value = "" Then
    Target.Offset(0, 1).Value = Target.Value
    Else
    Target.Offset(0, 1).Value = _
    Target.Offset(0, 1).Value _
    & ", " & Target.Value
    End If
    End If
    End If

    exitHandler:
    Application.EnableEvents = True

    End Sub
    Last edited by Tech_Wolf; 07-23-2009 at 12:04 PM.

+ 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