+ Reply to Thread
Results 1 to 3 of 3

How to change the code in dropdown multiple selection lsit to copy to other cells in sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Microsoft 365
    Posts
    39

    How to change the code in dropdown multiple selection lsit to copy to other cells in sheet

    I want to have more than one dropdown multiple selection list in my worksheet. I currently have it in B14, but i want the same code copied to include the same list in C14 and D14 etc. Right now, I have this:

    Private Sub Worksheet_Change(ByVal Target As Range)
    
        Dim oldVal As String
        Dim newVal As String
        
        If Target.Address(0, 0) <> "B14" Then Exit Sub
    
        On Error GoTo ReEnable
        Application.EnableEvents = False
        newVal = Target.Value
        Application.Undo
        oldVal = Target.Value
        Target.Value = newVal
    
        If oldVal <> "" And newVal <> "" Then
            Target.Value = oldVal & ", " & newVal
        End If
    ReEnable:
        Application.EnableEvents = True
        
    End Sub
    Also...Is there anyway to have more than one multiple selection dropdown list in the same worksheet?

    Thank you!

    Aliya
    Last edited by ajanson; 08-08-2016 at 04:29 PM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: How to change the code in dropdown multiple selection lsit to copy to other cells in s

    Moderation removed. Code tags are added.

    Thank you, ajanson.
    Last edited by Winon; 08-09-2016 at 06:53 AM.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    12-17-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Microsoft 365
    Posts
    39

    Re: How to change the code in dropdown multiple selection lsit to copy to other cells in s

    Thank you! I hope someone helps me out here 😊

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 11
    Last Post: 05-23-2016, 07:06 PM
  2. Replies: 5
    Last Post: 02-12-2015, 01:18 PM
  3. [SOLVED] Dynamically change X-axis as per dropdown selection
    By Sai Prashanth in forum Excel General
    Replies: 3
    Last Post: 09-12-2014, 05:20 PM
  4. Replies: 3
    Last Post: 03-23-2014, 02:06 PM
  5. Replies: 1
    Last Post: 01-17-2014, 04:00 PM
  6. Change values in cells based on dropdown selection
    By Gert Van Dessel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-19-2013, 09:31 AM
  7. Copy cells based on dropdown selection
    By wcnwzrd in forum Excel General
    Replies: 1
    Last Post: 10-16-2009, 01:48 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