Results 1 to 2 of 2

dropdown list vba

Threaded View

  1. #1
    Forum Contributor
    Join Date
    02-24-2017
    Location
    london
    MS-Off Ver
    OFFICE 365
    Posts
    105

    dropdown list vba

    Hi all i currently using a vba which allows the dropdown list to display a value but return a different value when selected.

    Private Sub Worksheet_Change(ByVal Target As Range)
    'Updateby Extendoffice
        selectedNa = Target.Value
        If Target.Column = 9 Then
            selectedNum = Application.VLookup(selectedNa, ActiveSheet.Range("dropdown"), 2, False)
            If Not IsError(selectedNum) Then
                Target.Value = selectedNum
            End If
        End If
    End Sub
    this only works for dropdown list in column 9 but i need multible columns! the columns i need are 9, 16, 23 and 32

    any help is much appreciated
    Attached Files Attached Files
    Last edited by jeffreybrown; 10-25-2023 at 11:24 AM. Reason: Please use code tags when posting code!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 10-14-2021, 11:47 AM
  2. Replies: 5
    Last Post: 12-11-2019, 04:37 AM
  3. Replies: 5
    Last Post: 11-15-2018, 11:02 AM
  4. Replies: 6
    Last Post: 02-02-2016, 04:26 PM
  5. Replies: 0
    Last Post: 08-22-2012, 03:52 PM
  6. Replies: 21
    Last Post: 12-02-2009, 03:27 PM
  7. Date dropdown list and a Time dropdown list in outlook
    By L_ter in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 03-30-2009, 02:33 AM

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