+ Reply to Thread
Results 1 to 6 of 6

VBA to copy selected cells of a row to a second spreadsheet

  1. #1
    Registered User
    Join Date
    04-25-2018
    Location
    Nashville, TN
    MS-Off Ver
    2016
    Posts
    34

    VBA to copy selected cells of a row to a second spreadsheet

    Hello,
    I would like my workbook to copy selected cells from row x to a table on another sheet in the same workbook when I select a value from a drop down list in column z. The selected cells will need to be mapped to the correct columns in the second table. I have provided a workbook with headers to show what data should be mapped and where it should be mapped to.
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA to copy selected cells of a row to a second spreadsheet

    There's no dropdown in Z and the headers don't jive with all of the categories
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    04-25-2018
    Location
    Nashville, TN
    MS-Off Ver
    2016
    Posts
    34

    Re: VBA to copy selected cells of a row to a second spreadsheet

    Hello, my apologies...I meant column T, miffed on why I wrote z.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA to copy selected cells of a row to a second spreadsheet

    What about aligning the headers?

  5. #5
    Registered User
    Join Date
    04-25-2018
    Location
    Nashville, TN
    MS-Off Ver
    2016
    Posts
    34

    Re: VBA to copy selected cells of a row to a second spreadsheet

    I'm not sure I understand what you mean. All the columns on sheet 2 that need to be mapped are on sheet 1.
    Attached Files Attached Files

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VBA to copy selected cells of a row to a second spreadsheet

    Here's event code for your Sheet1 module:

    Please Login or Register  to view this content.

+ 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. copy the intersection of selected cells and past delimition then copy results to another
    By hassan khansa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-07-2017, 04:57 PM
  2. Copy the most count of identifier and copy them into the selected cells
    By geliedee in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2015, 04:44 PM
  3. Replies: 8
    Last Post: 07-29-2012, 07:00 PM
  4. [SOLVED] copy selected data from a workbook to another spreadsheet each time I run a template
    By mickyh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2012, 07:18 PM
  5. Importing Selected Cells from Spreadsheet
    By EddieN1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2012, 02:00 AM
  6. copy data from selected cells , in selected row and paste it to ms word table ?
    By aaashaaa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-06-2010, 03:25 PM
  7. copy certain cells from 1 spreadsheet to other spreadsheet depending on condition
    By Gauntsghost in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-14-2010, 07:06 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