+ Reply to Thread
Results 1 to 4 of 4

Find, Copy and change from row to column

Hybrid View

Guest Find, Copy and change from... 11-03-2005, 12:35 PM
Guest Re: Find, Copy and change... 11-04-2005, 09:30 AM
Guest Re: Find, Copy and change... 11-04-2005, 03:35 PM
Guest Re: Find, Copy and change... 11-04-2005, 04:55 PM
  1. #1
    ron_dallas
    Guest

    Find, Copy and change from row to column

    This is getting the best of me,

    I have S/S with multi worksheets with system and hardware layout. The
    problem is it is all done from left to right. I need to find just the
    system and write them top to bottum and which tab they were found on a
    new worksheet.

    So something like this:
    1) create new worksheet called systems.
    2) goto first worksheet
    3) find first row with system in column A
    4) copy rest of row (B-AA) to worksheet systems and paste top to bottom
    in Column A
    5) go back to first worksheet find next system, if not anymore go to
    next worksheet.

    Any suggestions?

    Thanks,
    Ron


  2. #2
    Tom Ogilvy
    Guest

    Re: Find, Copy and change from row to column

    How would we know it is as system. Are the only entries in column A
    systems?

    On Error Resume Next
    Worksheets.Add( After:=Worksheets(Worksheets.count)).Name = "System"
    On Error goto 0
    rw = 1
    for each sh in Worksheets
    if sh.Name <> "System" then
    set rng = sh.Columns(1).Specialcells(xlConstants)
    for each cell in rng
    cell.resize(1,27).copy Destination:=Worksheets("System").Cells(rw,1)
    Next
    end if
    Next

    --
    Regards,
    Tom Ogilvy

    "ron_dallas" <ron_dallas2001@yahoo.com> wrote in message
    news:1131035381.512365.168710@g47g2000cwa.googlegroups.com...
    > This is getting the best of me,
    >
    > I have S/S with multi worksheets with system and hardware layout. The
    > problem is it is all done from left to right. I need to find just the
    > system and write them top to bottum and which tab they were found on a
    > new worksheet.
    >
    > So something like this:
    > 1) create new worksheet called systems.
    > 2) goto first worksheet
    > 3) find first row with system in column A
    > 4) copy rest of row (B-AA) to worksheet systems and paste top to bottom
    > in Column A
    > 5) go back to first worksheet find next system, if not anymore go to
    > next worksheet.
    >
    > Any suggestions?
    >
    > Thanks,
    > Ron
    >




  3. #3
    ron_dallas
    Guest

    Re: Find, Copy and change from row to column

    Looks like it goes and finds them, but puts everything in A1

    Let me change it and say copy what every it find to sheet systems, so
    find a line, paste it, find next line paste it on the next line. Would
    that be easier?


  4. #4
    Tom Ogilvy
    Guest

    Re: Find, Copy and change from row to column

    Just left out the rw increment

    On Error Resume Next
    Worksheets.Add( After:=Worksheets(Worksheets.count)).Name = "System"
    On Error goto 0
    rw = 1
    for each sh in Worksheets
    if sh.Name <> "System" then
    set rng = sh.Columns(1).Specialcells(xlConstants)
    for each cell in rng
    cell.resize(1,27).copy Destination:=Worksheets("System").Cells(rw,1)
    rw = rw + 1
    Next
    end if
    Next

    --
    Regards,
    Tom Ogilvy


    "ron_dallas" <ron_dallas2001@yahoo.com> wrote in message
    news:1131132577.609687.164180@g47g2000cwa.googlegroups.com...
    > Looks like it goes and finds them, but puts everything in A1
    >
    > Let me change it and say copy what every it find to sheet systems, so
    > find a line, paste it, find next line paste it on the next line. Would
    > that be easier?
    >




+ 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