+ Reply to Thread
Results 1 to 3 of 3

Copy rows & columns based on the name to another sheet

  1. #1
    Registered User
    Join Date
    09-21-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    2

    Copy rows & columns based on the name to another sheet

    Hi,

    I'm very new to VBA programming, if you can help me it would be greatly appreciated.

    First column name is Status, which has values of "Y" or "N".

    Then I have bunch of rows and columns with sets of data.

    Lets say I have about 4 rows with 10 columns of data, it is basically sets of data. Right now I have about 10 sets of data, some of them are with 2 rows with 10 columns and some with 5 rows with 10 columns.

    Example:

    Here is what I have done:

    I have selected 4 rows and 10 columns and named it "Test1" and selected another set of rows and columns and named it "Test2".

    what I would like to do is in Sheet 2 to copy all the rows and columns based on the name and where "Status" = "Y".

    Is this possible?

    Thanks!

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Copy rows & columns based on the name to another sheet

    Hi,

    I'm not sure the naming part is necessary.

    Best thing would be to upload a sample workbook showing what you are trying to achieve and I'm sure it shouldn't be asking too much to come up with a solution.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    09-21-2010
    Location
    Toronto
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Copy rows & columns based on the name to another sheet

    Hi I have attached the excel sheet.

    First sheet name is "Payment" and second sheet name is "PaymentReceived".

    What I would like to do is to select all the rows that has "Y" in column B and copy it.

    Then paste it in sheet "PaymentReceived" under the right headings, and it should have an empty row between set of data.

    I'm not sure if this would be possible.

    Thanks!
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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