+ Reply to Thread
Results 1 to 3 of 3

Copying Rows to to another Sheet based on the column data?

  1. #1
    Registered User
    Join Date
    01-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Copying Rows to to another Sheet based on the column data?

    Hi,


    I had a requirement of copying the column data from sheet to another sheet in excel based on the condition. I am able to copy the single row but i am not able to do the same. I am new to excel VBA. so i planned for an algorithm as
    1. Iterating rows using for loop
    2. Checking the condition of the particular column value


    but i am not acheive the code as above mentioned steps, and i dont know whether it hits the prformance. I had many rows nearly above 30k. so could anyone please suggest me the answer for this

    I attached an sample excel sheet
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    12-05-2011
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010 & 2013
    Posts
    308

    Re: Copying Rows to to another Sheet based on the column data?

    Hi BhuvanRam

    The following code should be pasted in to the Macro sheet for Sheet2. Do do this, open the VBA Editor and double click Sheet2 on the left hand side.

    It will run every time that sheet is activated.

    Please Login or Register  to view this content.
    Best regards, Rob.

  3. #3
    Registered User
    Join Date
    01-21-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Copying Rows to to another Sheet based on the column data?

    Hi,

    Thank you for the Answer. But the problem is its taking so much of time to copy , because i had 65 Columns and 35000 Rows nearly. Do we have any other way to do it? And is it possible to copy the rows by leaving one row blank as offset(2,1)?

    thanks
    bhuvan

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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