I have stepped through the code below and it jumps from
For r = 2 to total .........through to the bottom instance of ws4.activate
I can't for the life of me workout why ?
Any ideas ?
For r = 2 to total .........through to the bottom instance of ws4.activate
I can't for the life of me workout why ?
Any ideas ?
Code:
'Copy Super and Excpetional Clients who are yet to travel to Tab 3
ws1.Activate
For r = 2 To total
clientdb = Cells(r, 1).Offset(0, 7).Value
durdate = Cells(r, 4) - Date
If durdate > 0 And clientdb = "SUPER CLIENT" Or durdate > 14 And clientdb = "EXCEPTIONAL CLIENT" Then
Range(Cells(r, 1), Cells(r, 18)).Copy
ws4.Activate
lastrow = Cells(Rows.Count, 1).End(xlUp).Row + 1
Cells(lastrow, 1).Activate
ActiveCell.PasteSpecial xlPasteAll
ws1.Activate
End If
Next r
'Sort bookings on TAB 3 by departure date order
ws4.Activate
Last edited: