It seems to me that this is wrong...
Which refers to the duration of emergency column and therefore your loop count is wrong. Also, this seems wrong...lastrow1 = sh1.Range("K" & sh1.Rows.count).End(xlUp).Row
It should be...If Not (IsNull(rng) Or IsEmpty(rng)) Then
HTH. DaveIf Not rng Is Nothing Then
ps. This page seems buggy???