+ Reply to Thread
Results 1 to 4 of 4

need help to copy rows to a new sheet depend on a cell value

  1. #1
    Registered User
    Join Date
    11-16-2012
    Location
    Mos Eisly
    MS-Off Ver
    Excel 2007
    Posts
    39

    need help to copy rows to a new sheet depend on a cell value

    Hi all,
    I need to copy some rows with a specific Value in a Column from sheet1 called "Germany" to Sheet2 called "GIZ".
    Example:
    Sheet1 "Germany"
    Iteam Reference Location
    A 1 Germany
    B 1 France
    C 1 UK
    D 2 Italy
    E 3 USA
    F 3 China

    The thing is I don't know the order in Column "Reference" all I know is that they are grouped, but maybe 3 come before 1 or 2 etc..
    And I need to keep that order too.

    Now I want to copy all Rows with the Reference Nbr 1 and 3 to Sheet2 "GIZ" if possible sorted and grouped like in sheet1

    I did a small macro, but i discovered that he missed some rows, and as Sheet1 has more than 3000 rows is difficult to check if he did everything or not.

    OH before i forgot I want that he skip the reference and continue with the next one if the reference value is not there in sheet1


    Here is my Macro as you see I have here 7 Value as reference.

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    11-16-2012
    Location
    Mos Eisly
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: need help to copy rows to a new sheet depend on a cell value

    any help?....

  3. #3
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: need help to copy rows to a new sheet depend on a cell value

    Can you attach a workbook with a before and after example?

    To attach a workbook click 'Go Advanced' below and use the paperclip button in the toolbar.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  4. #4
    Registered User
    Join Date
    11-16-2012
    Location
    Mos Eisly
    MS-Off Ver
    Excel 2007
    Posts
    39

    Red face Re: need help to copy rows to a new sheet depend on a cell value

    ehhhhmmmmmmmmmmmmmm
    I have no Idea I tested the same code without any changes at all on a new data in Sheet1 and now it's working perfectly... I tested it again with the old file and.... it's working ???!!!! +
    thank you anyway for your help

+ 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] Need to Copy cell info from one sheet to rows on a new sheet.
    By gavdean17 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-13-2012, 03:07 PM
  2. [SOLVED] Copy of rows from one sheet to other depend of condition in one cell
    By maksa1982 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-02-2012, 06:19 PM
  3. automatic group rows depend on cell values
    By yellowpower in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-15-2010, 09:46 AM
  4. Copy Rows from selected Sheet to New Sheet based on Cell Value
    By joemcmillen in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 04-03-2008, 03:44 PM
  5. [SOLVED] 'Copy to' Advance Filter depend only on sheet ID not start sheet
    By Sandy Yates in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-03-2006, 10:50 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