Why am I getting this VBA error?
This is your problem:
Dim end_row As Integer
An Integer variable maxes out at a value of 32,767. If you declare
that as Long your code should work properly. It likely worked on your
test sprdsht because that sprdsht used less than 32,767 rows.
Dave O
Eschew Obfuscation
|