+ Reply to Thread
Results 1 to 2 of 2

Using Multiple Drop down List to populate Multiple Ranges

Hybrid View

  1. #1
    Registered User
    Join Date
    04-08-2012
    Location
    Kansas, U.S
    MS-Off Ver
    Excel 2010
    Posts
    95

    Using Multiple Drop down List to populate Multiple Ranges

    Hello All,

    With Help of several here i have the following code Working Great.

    If possible, i would like to eliminate several VLookup formula's i have and go with VBA code so i dont have to go in and Change Multiple formulas anymore.

    I have Drop down boxes from "B2:B37" that populate "D:R" of respective lines
    .. Even lines look at "Combined Data" Tab
    .. Odd Lines look at "Offset" Tab


    Ive tried and can get it to copy over the format "boarder's only" but not the Data itself.

    Is there a way to use the Copy & paste part of this code multiple times?
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.Count > 1 Then Exit Sub
    Dim lr As Long
    Application.EnableEvents = False
    If Not Intersect(Target, Range("B42")) Is Nothing Then
    lr = Sheets("Main Gear").Columns("B:R").Find("*", , xlFormulas, xlPart, xlByRows, xlPrevious).Row + 1
    If lr < 44 Then lr = 44
    Sheets("Main Gear").Range("B44:R" & lr).Clear
        With Sheets("Combined Data")
            .AutoFilterMode = False
            With .Range("A1").CurrentRegion
                .AutoFilter Field:=3, Criteria1:=Sheets("Main Gear").Range("B42").Value
                .Offset(1).Columns("A:A").Copy Destination:=Sheets("Main Gear").Range("B44")
                .Offset(1).Columns("B:P").Copy Destination:=Sheets("Main Gear").Range("D44")
            End With
            .AutoFilterMode = False
        End With
    End If
    Application.EnableEvents = True
    End Sub

    Thanks Again
    Aeneren

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,053

    Re: Using Multiple Drop down List to populate Multiple Ranges

    If possible, i would like to eliminate several VLookup formula's i have and go with VBA code so i dont have to go in and Change Multiple formulas anymore.
    If you need to keep adjusting your formulas, maybe there is a better way to construct them so they need no adjustments?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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: 2
    Last Post: 02-06-2015, 04:30 AM
  2. Need a drop down list to populate multiple cells with specific data
    By tbo812 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2014, 02:08 PM
  3. [SOLVED] From drop down list selection populate multiple Cells
    By logcabin123 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-21-2012, 12:43 PM
  4. how to create a drop down list that will populate multiple cells after selected
    By aaronriggle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-07-2012, 06:59 PM
  5. [SOLVED] Trying to make multiple dependent drop down list with dynamic ranges
    By Gwen@YouWantWhat? in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-01-2012, 12:55 AM
  6. Replies: 12
    Last Post: 09-26-2012, 03:32 PM
  7. [SOLVED] Creating drop down list for multiple cell ranges
    By Aaron Saulisberry in forum Excel General
    Replies: 3
    Last Post: 05-01-2005, 02:06 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