Hello,
I need your help or someone from the community. I am trying since 4 hours to make it work in my case. Do you have an idea of what is wrong ?
Please find my file in my drive https://drive.google.com/file/d/0B5YQXffHf4okZl9rSExGaFFvQmk3RGh4SUhkT19XRTBSTUNR/view?usp=sharing
Thank you so much
I need your help or someone from the community. I am trying since 4 hours to make it work in my case. Do you have an idea of what is wrong ?
Code:
[/COLOR]Sub TransferData()
Application.ScreenUpdating = False
Dim i As Integer
Dim lr As Long
lr = Range("A" & Rows.Count).End(xlUp).Row
Feuil7.ListObjects("Table2").Unlist
For i = lr To 4 Step -1
If Cells(K, 11).Value = "Closed" Then
Range(Cells(K, 1), Cells(i, 12)).Copy
Sheet7.Range("A" & Rows.Count).End(3)(2).PasteSpecial xlPasteValues
Range(Cells(K, 1), Cells(K, 12)).Delete
End If
Next
Sheet7.Columns.AutoFit
Application.CutCopyMode = False
Application.ScreenUpdating = True
Sheet7.Select
Sheet7.ListObjects.Add(xlSrcRange, Range("A3:L" & lr), , xlYes).Name = "Table2"
End Sub
[COLOR=#333333]
Please find my file in my drive https://drive.google.com/file/d/0B5YQXffHf4okZl9rSExGaFFvQmk3RGh4SUhkT19XRTBSTUNR/view?usp=sharing
Thank you so much