Romano_odK
Active Member
- Joined
- Jun 4, 2020
- Messages
- 379
- Office Version
- 365
- Platform
- Windows
Good morning,
I got this code from Peter and I got it working finally. Now the only thing I would really like is for the code is to compare between column [Verkoopprijs] (colomn 3) and [Backup Verkoopprijs] (column 38) in the table. I really do not understand a bit of this code so does anyone know how to do this?
Thank you for your time.
Romano
I got this code from Peter and I got it working finally. Now the only thing I would really like is for the code is to compare between column [Verkoopprijs] (colomn 3) and [Backup Verkoopprijs] (column 38) in the table. I really do not understand a bit of this code so does anyone know how to do this?
Thank you for your time.
Romano
VBA Code:
With Range("Table_Query_from_A100[Verkoopprijs]")
.Value = Evaluate(Replace("if(#=" & .Offset(, 1).Address & ",True,#)", "#", .Address))
End With
With Range("Table_Query_from_A100[#All]")
.AutoFilter Field:=3, Criteria1:="TRUE"
If .Columns(1).SpecialCells(xlVisible).Count > 1 Then .Offset(1).Resize(.Rows.Count - 1).EntireRow.Delete
.AutoFilter Field:=3
End With