+ Reply to Thread
Results 1 to 4 of 4

Automatic Transfer of Data to Sheets Based on Drop-Down by VBA

  1. #1
    Forum Contributor
    Join Date
    12-22-2015
    Location
    San Antonio, Texas
    MS-Off Ver
    2016
    Posts
    116

    Automatic Transfer of Data to Sheets Based on Drop-Down by VBA

    I have an attached workbook with sheets named All Data, MI, & CF. (Disregard the tab labelled Data; it will ultimately be hidden.) In the sheet named All Items, there is a table column (column B) labelled Lab Group ID which offers three drop-down choices: MI, CF, & MI/CF. (MI/CF means that the row applies to both MI and CF.) IF MI is selected, and when the row is filled, that row will copy into the first available row in the MI sheet; if CF is selected, and when that row is filled, that row will copy into the first available row in the CF sheet; if MI/CF is selected, and when that row is filled, that row will copy into the first available row of BOTH MI & CF sheets. It will transfer to the two sheets. Row 1 will have table headers, so that is to be excluded. I shall make the MI & CF sheets into tables, too. The sheet All Data will be updated throughout the year, so there will be no ending row for it.
    I have searched numerous online fora and tutorials to no avail. I have minimal VBA knowledge at best. I need the VBA to automatically run, or always run. (The user wouldn’t have to select anything; Excel would automatically do it.)
    I have attached the workbook. I’ll elucidate anything further if need be. I’ll buy you tacos! I just really need help. I want to learn the coding, but this was thrown onto me unexpectedly, & now management is hassling me for a result.
    THANK YOU if you can help me!
    Attached Files Attached Files

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automatic Transfer of Data to Sheets Based on Drop-Down by VBA

    1) Fix the MI tab name, there is a hidden space in the tab name, remove that.

    2) This macro in the ThisWorkbook module will take care of both sheets. What it's doing is each time you view the MI or the CF sheet, it is copying the ALL Items table into the sheet, and then removing the rows that don't have sheetname listed in the column B text.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    12-22-2015
    Location
    San Antonio, Texas
    MS-Off Ver
    2016
    Posts
    116

    Re: Automatic Transfer of Data to Sheets Based on Drop-Down by VBA

    Hi, JBeaucaire!
    Question: How do I correct the table format? There seems to be an error. The rows aren’t interchanging green and white. There are several places where a column isn’t green or white where it should be. How do I fix that. I need your help!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Automatic Transfer of Data to Sheets Based on Drop-Down by VBA

    You'd have to post a workbook with sample data that is demonstrating that problem.

+ 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. Automatic Transfer of Data to Sheets Based on Column by VBA
    By STBTC in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-24-2017, 04:14 PM
  2. [SOLVED] Transfer data to seperate sheets, based on name
    By twisted31 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-28-2014, 02:13 PM
  3. [SOLVED] Data transfer from two different sheets based on drop down menu using a button
    By rowlandjp in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-06-2013, 12:51 PM
  4. Macro to transfer row of data between sheets based on certain criteria.
    By kmc86 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-26-2012, 10:40 AM
  5. Data transfer between two sheets based on condition
    By agasi999 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-04-2008, 10:09 AM
  6. Data transfer between two sheets based on condition
    By shortman_alan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2008, 04:48 PM
  7. Replies: 0
    Last Post: 11-14-2005, 06:10 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