+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : need to copy the found row and the next 20 rows

  1. #1
    Registered User
    Join Date
    08-16-2010
    Location
    Atlanta Ga.
    MS-Off Ver
    210
    Posts
    61

    need to copy the found row and the next 20 rows

    I have a code for searching a data only report. The problem is how do I get it to copy the found row and the next 20 rows. Please see sample data report attached and the search code I am using below. The code below would find row 7 in the sample data report, I need to copy row 7 thru row 27. The copied rows would paste to another sheet "Invoiced Sort". Thanks to all that look and try to help.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by grsnipe; 11-30-2010 at 08:56 AM.

  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: need to copy the found row and the next 20 rows

    Hi,

    Please review the correct format for the code tags. I see you'd attempted to add tags but they were wrapped inside a Quote and didn't have the close \CODE syntax.

    How about something like

    Please Login or Register  to view this content.
    try and avoid selecting (and activating) cells and sheets. It's rarely needed and just slows code down as well as being longer.

    HTH
    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
    Registered User
    Join Date
    08-16-2010
    Location
    Atlanta Ga.
    MS-Off Ver
    210
    Posts
    61

    Re: need to copy the found row and the next 20 rows

    Thanks for the help, it is greatly appreciated.

+ 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