+ Reply to Thread
Results 1 to 5 of 5

search for a product code, cut and transfer entire row to another sheet

  1. #1
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    search for a product code, cut and transfer entire row to another sheet

    Hi everyone,


    I would like to create a box in sheet "Sales return" where I can enter a product code and press "search" button . (need to create search button as well)


    When I press the "search" button then

    * it searches that code in sheet "Invoice Data" in Range "F"
    *Then, it cuts the entire row in which the value is present and transfers it to sheet "Sales return "

    I would want it to search for next empty row and paste.


    Is this possible??

    I have attched my sample woekbook.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: search for a product code, cut and transfer entire row to another sheet

    I see no sheet called Sales Return.

    Would you correct and manually add a copy sheet that shows the 'After' position which results from a product code selection. Be sure to note which product you have selected and where.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: search for a product code, cut and transfer entire row to another sheet

    hey Richard,

    I have attched the updated excel file.

    Thank You.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: search for a product code, cut and transfer entire row to another sheet

    Will the Data ever contain more than one occurrence of a product code?

    How do you use the information that gets applied to the Sales Return?
    The way you're describing it, it seems that you're gradually selecting rows from one sheet and adding them to the other. So why not simplify this and just have an extra column on the Invoice Data sheet and autofilter the Data for the product in question and flag the cell in the new column for that item. Then remove the autofilter. When you want the information for the Sales Return just autofilter the data on the new column.

  5. #5
    Forum Contributor
    Join Date
    08-18-2017
    Location
    india
    MS-Off Ver
    2010
    Posts
    490

    Re: search for a product code, cut and transfer entire row to another sheet

    The product code is unique.
    So it will never be repeated.


    Right now I have a macro running on my excel file which automatically copies data from sheet "Invoice" to "Invoice data"

    Right now the problem is that when a customer returns the product.

    So when a customer returns the product then I just want to enter the product code so that it cuts the entire row from the "invoice data" and pastes it to "sales return".

+ 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. [SOLVED] sum and transfer corrsponding data from sheet to other according to product name
    By mazan2010 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-28-2017, 11:37 AM
  2. How to transfer multiple entire rows to a new sheet?
    By Fred45 in forum Excel General
    Replies: 1
    Last Post: 11-19-2014, 10:13 AM
  3. [SOLVED] Transfer Every Matched Entry's Entire Row to a Different Sheet
    By RomanGriffen in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-04-2014, 09:52 AM
  4. Replies: 5
    Last Post: 10-18-2012, 11:34 AM
  5. Macro to search ID number in sheet 1 and transfer quantity into sheet 2
    By obgle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2012, 11:27 AM
  6. MACRO Transfer entire row based on a table in a third sheet/tab
    By eastydie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2011, 04:48 AM
  7. Search multiple closed wb for a product code
    By whitemonk in forum Excel General
    Replies: 1
    Last Post: 11-16-2010, 12:02 AM

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