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

    Delete line if... (2000 sr 1)

    I have this line of code, is possible to delete entire range from A+riga to R+riga, if this line assume the value CHIUSO...

    If Sheets("ISTANTANEA").Range("F" + RIGA) = "CHIUSO" Then
    delete line

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

    Re: Delete line if... (2000 sr 1)

    Try

    Sheets("ISTANTANEA").Range("A" & RIGA & ":R" & RIGA).Delete Shift:=xlShiftUp

    If you want to delete the entire row:

    Sheets("ISTANTANEA").Range("A" & RIGA).EntireRow.Delete

Posting Permissions

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