Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Recopy line into other sheet with index in column (2000 sr 1)

    Assumning i have the sheet SALDI and FINAL.
    How to recopy the entire line from SALDI (range A:H) and put into sheet FINAL only the line identify with the index "00" in column E of sheet SALDI...
    I have insert the sheet FINAL my result...

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Recopy line into other sheet with index in column (2000 sr 1)

    You can use Data | Filter | Advanced Filter... (Dati | Filtro | Filtro avanzato...) to copy only the rows with Codice = "00". If you want to do it in code:
    - Enter the name Codice in J2, and the value 00 in J3 (formatted as text, see screenshot below)
    - Create the following macro:

    Sub Copia_Linee()
    Dim lngMaxRow As Long
    lngMaxRow = Worksheets("Saldi").Range("A65536").End(xlUp).Row
    Worksheets("Saldi").Range("A2:H" & lngMaxRow).AdvancedFilter _
    Action:=xlFilterCopy, _
    CriteriaRange:=Worksheets("Saldi").Range("J2:J3"), _
    CopyToRange:=Worksheets("Final").Range("A2:H2")
    End Sub

  3. #3
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Recopy line into other sheet with index in column (2000 sr 1)

    Tks..... naturally

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •