Results 1 to 3 of 3

Macro to Select Drop Down List

Threaded View

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    38

    Macro to Select Drop Down List

    Thanks to AB33 I have a working code. But now I need to complicate things.

    As you can see from the attached file, my code currently pulls data from the "Data" tab and pastes it into the "Collection_now" tab.
    Each time the macro is run it pastes into the next available column.

    But the data in "Data" is dependent on the selection from the drop down list in cell B1.
    Each time a different value is chosen the values will change in the source range. These formulas don't seem to make sense but this is because I had to simplify them.

    Basically I need the macro to choose each selection option in order (1 then 2 then 3), calculate the sheet each time, and paste the values into "Collection_now".
    The pasted values should continue to stack on top of each other.

    As you can see in the "Collection_needed" tab this is what I want it to look like after that macro has been run.

    This is my current code:

    Sub Dropdown()
    
     Application.ScreenUpdating = 0
     Dim LC As Long, i As Long, ms As Worksheet, j As Long
     Set ms = Sheets("Collection_now")
     j = ms.Range("IV2").End(xlToLeft).Column + 1
     With Sheets("Data")
    
     LC = .Cells.Find("*", , , , xlByColumns, xlPrevious).Column
     For i = 6 To LC
     .Cells(2, i).Resize(.Cells(.Rows.Count, i).End(xlUp).Row).Copy
       ms.Cells(Rows.Count, j).End(xlUp).Offset(1).PasteSpecial xlFormats
       ms.Cells(Rows.Count, j).End(xlUp).Offset(1).PasteSpecial xlValues
    
     Next i
     End With
     Application.CutCopyMode = 0
     Application.ScreenUpdating = True
    End Sub
    Please let me know if you need any further information.
    Thank you in advance for your help!!!
    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. Linking drop down list to select from another list ?
    By slaughtontdc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-19-2013, 07:55 AM
  2. [SOLVED] Select from drop down list to show another drop down list in a different cel
    By ExcelRanger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2012, 04:27 PM
  3. How do I use one list drop down menu result to select another list?
    By steveinspain in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-02-2007, 02:59 PM
  4. Select:Drop down list
    By Not A Clue in forum Excel General
    Replies: 1
    Last Post: 11-11-2006, 08:21 PM
  5. Replies: 5
    Last Post: 10-27-2005, 01:55 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