Results 1 to 12 of 12

Fill data based on multiple drop down selections on a heading page

Threaded View

  1. #1
    Registered User
    Join Date
    08-12-2021
    Location
    DENVER, CO
    MS-Off Ver
    VERSION 2107
    Posts
    14

    Fill data based on multiple drop down selections on a heading page

    Hello,

    I am trying to get this vba code to work so that when a options is selected for the zone 1 drop down menu for instance if plank is selected itll put those rooms with a quantity on the plank page but if sheet vinyl is selected itl do the same thing. I just cant seem to get the code to work :/ ..... this is the code that i have and the attached workbook

    Private Sub Worksheet_Change(ByVal Target As Range)
    Dim ws1 As Worksheet, ws2 As Worksheet
    Dim rng As Range

    Application.EnableEvents = False
    If Not Intersect(Target, Range("H14:H18")) Is Nothing Then

    Set ws1 = Worksheets("DEF_ZONES") ' tables of Rooms per Zone
    Set ws2 = Worksheets(Target.Value) ' Product type e.g "Sheet Vinyl"
    zone = Replace(Target.Offset(0, -1), " ", "_") ' Named Range of Zones
    Set rng = ws1.Range(zone)
    With ws2
    irow = 14
    Do While .Cells(irow, 2) <> "" ' find second blank cell
    irow = irow + 1
    Loop
    For Each c In rng
    .Cells(irow, 2) = c
    irow = irow + 1
    Next c
    End With

    End If

    Application.EnableEvents = True

    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Fill date based on multiple drop down selections
    By KOTZBROCKEN in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-14-2021, 02:11 AM
  2. Fill data based on multiple drop down selections on a heading page
    By KOTZBROCKEN in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2021, 02:09 AM
  3. Replies: 0
    Last Post: 06-14-2019, 03:28 PM
  4. [SOLVED] Populate data based on several drop down selections
    By NerdALRT in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-25-2014, 03:42 PM
  5. [SOLVED] Update respective cell value based on Multiple Drop Down list selections
    By nileshpatil in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-16-2012, 08:43 AM
  6. Filter data in one tab based on drop down selections in a different tab
    By ragonef in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2012, 09:27 AM
  7. Fill table using drop down list data selections
    By Lasthitlarry in forum Excel General
    Replies: 2
    Last Post: 07-10-2009, 06:03 PM

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