+ Reply to Thread
Results 1 to 4 of 4

Copy row based on value in col A + paste in new sheet, more than one value in "A" desired

  1. #1
    Forum Contributor
    Join Date
    01-14-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    125

    Copy row based on value in col A + paste in new sheet, more than one value in "A" desired

    Good evening everyone,
    I have spent multiple hours trying to work out a problem that seems like it should be very easy but I just can't get to work, after dozens and dozens of failed attempts I found a code posted via googling that mostly works. I have a workbook with several tabs I want it to create a new tab and then copy content onto that new tab from another tab (i.e. the old tab) based on specifc values in column A of that old page ( I have a list of ~15 things I am loooking for in column A but reduced example). My issue is that the code runs perfect right until the end of the last line than before it can change to "end sub" it gives me a " Run-time error ‘1004’
    Application-defined or object-defined error" and it adds an unasked for worksheet to the workbook with an ever increasing number and errors out ?? Thanks so very much for any and all help, it's greatly appreciated!! Lili

    Please Login or Register  to view this content.
    I also got this to mostly work but only would work with searching for one value in column a but it was ALSO erroring out at the end and trying to a add an additional worksheet.

    Please Login or Register  to view this content.
    Last edited by LiLi1; 03-12-2013 at 09:19 PM.

  2. #2
    Forum Contributor
    Join Date
    01-14-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Copy row based on value in col A + paste in new sheet, more than one value in "A" desi

    I also tried this but it just copied the entire page either before or after the specifc cell I was looking for and it also only let me know for one item in column a.

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    01-14-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Copy row based on value in col A + paste in new sheet, more than one value in "A" desi

    Anyone have ideas?? Bumping....

  4. #4
    Forum Contributor
    Join Date
    01-14-2010
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    125

    Re: Copy row based on value in col A + paste in new sheet, more than one value in "A" desi

    Thanks to a co-worker suggestion... line was added under "For i = 1 To SrcLR" stating "Cells(i,1).Select"

    This allowed me to detect with screen updating on, that the code was erroring out near the end of the document with a section that was formatted different from some previous code.

    Problem solved

+ 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