Originally Posted by
dumdumbum
Thnx Alot Karmapala for helping me in solving this problem
little error was there & its been corrected
Have a Great Day
It's difficult for me because I use Excel 2010 which has more rows count.
Until before, I thought that just using the "Rows.Count", will work to every Excel version,
but it turn out I need to define the sheet "sh1.Rows.Count" in order it work to every Excel version.
Thanks for clarifying, dum.
btw, I just noticed this in your code :
Since you define variable tt to c2.value,
then I think better use it as follow :
Orrr....
maybe you put that tt line just to check whether it gives a correct value or not .
Bookmarks