I use the following script in Excel 2000 and it works perfectly, for some reason in Excel 2010 version it bugs out at the case "DB", "" line, it says type mismatch.
Can anyone help to fix this as it is an important piece of code and there are another four pieces of code similar, so if it won't work for this one then it probably won't work for the others.
Can anyone help to fix this as it is an important piece of code and there are another four pieces of code similar, so if it won't work for this one then it probably won't work for the others.
Code:
For i = 2 To Range("Q800").End(xlUp).Row
If Cells(i, 17).Value > 1 Or IsEmpty(Cells(i, 1)) Then
Select Case Cells(i, 1).Value
Case "DB", ""
Cells(i, 4).Value = Cells(i, 9).Value & Cells(i, 10).Value
Cells(i, 5).Value = Cells(i, 11).Value
Cells(i, 6).Value = Cells(i, 13).Value
End Select
End If
Next