+ Reply to Thread
Results 1 to 8 of 8

Copy called out items from sheet1 to sheet2

  1. #1
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Copy called out items from sheet1 to sheet2

    Good morning,

    I have attached a sample workbook. On sheet1 I have inventory items, I need a VBA code to copy only certain items with its corresponding row to sheet2. I believe something similar to a vlookup can be used. I would like to call the items to sheet2 by column A (Part#). Rows will change so i am not able to just call out a row.

    To clear things up I would like only the data from Item2, Item4, and Item9 to be copied to sheet2 with all of it's columns (A:F)

    Book1.xlsx

    Thanks in advance!

  2. #2
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Copy called out items from sheet1 to sheet2

    Hi,

    Not sure if i understand what you need here, what is the trigger to copy rows? Is it always going to be copy row if column "A" contains string text Item2, Item4 or Item9

    Regards
    Steve

  3. #3
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Copy called out items from sheet1 to sheet2

    Steve,

    I plan to just add a button on sheet 1 to always copy the same row of item info no matter where they are in the sheet. It will always be the same items (ex. Item2, Item4, and Item9) so I was hoping I could make some kind of list in a VBA. I can accomplish this by =Vlookup("Item1",Sheet1,A:F,1,False) but it would be too much to do in every cell.

    I think something like this is possible, but i can't be sure.

    I hope this answers your question

    Thank you
    Last edited by MICowboy13; 01-09-2014 at 11:10 AM.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy called out items from sheet1 to sheet2

    Maybe:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Copy called out items from sheet1 to sheet2

    Hi,

    This is a bit crude but it seems to work, should help if no one else can give a more elegant bit of code.

    Please Login or Register  to view this content.
    Regards
    Steve
    Last edited by Steve@Rugby; 01-09-2014 at 11:38 AM.

  6. #6
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: Copy called out items from sheet1 to sheet2

    Go with John's code if i were you. I'm just a beginner!

  7. #7
    Registered User
    Join Date
    01-10-2012
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Copy called out items from sheet1 to sheet2

    Both of these accomplish what i was looking for. Thank You John ans Steve!

    If you have a few extra minutes i could use a code for to add the sum of column F to cell "G2". If not that is okay too.

  8. #8
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Copy called out items from sheet1 to sheet2

    Quote Originally Posted by MICowboy13 View Post
    Both of these accomplish what i was looking for. Thank You John ans Steve!

    If you have a few extra minutes i could use a code for to add the sum of column F to cell "G2". If not that is okay too.
    You're welcome, try:

    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. Replies: 6
    Last Post: 07-25-2013, 02:58 PM
  2. [SOLVED] If cell value on Sheet1 not found on Sheet2 copy row to Sheet2
    By Yxx in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-18-2013, 04:15 AM
  3. [SOLVED] Copy and Paste Entire Row from Sheet1->Sheet2 based on text string match in Sheet1 Row
    By dmlovic in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-17-2012, 08:42 AM
  4. how to copy sheet1 to sheet2 and refresh sheet1
    By ansmyq in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2009, 02:42 PM
  5. IF Sheet1 Cell A2 = value, THEN copy Sheet1 Row 2 to Sheet2 Row 2....?
    By dan1980 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2009, 10:28 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