Sorry, forgot to ask ...
And if your data doesn't start in A1. your totalrows and totalcols
variables
may not be what you expect. So I changed it.
I'm not sure what the difference is between the 2 methods. When you
say "data doesn't start in A1", are you referring to blank lines?
--
ingineu
------------------------------------------------------------------------
ingineu's Profile:
http://www.excelforum.com/member.php...o&userid=14860
View this thread:
http://www.excelforum.com/showthread...hreadid=513944