I got it! I changed: [VBA]Dim NbRows As Integer[/VBA] to [VBA]Dim NbRows As Long[/VBA] And it worked perfectly fine!
Forum Rules