That's because you're not effectively using the Win32::OLE interface to Excel. You want to use the Find function. See a handy reference of Excel methods at the Tek-Tips Forums site. Specifically, check out the "#___ FIND LAST ROW/COLUMN WITH DATA" section. I think you can adapt that to your needs.
In reply to Re^2: Help,WIN32::OLE parse EXCEL ,run error
by Sinistral
in thread Help,WIN32::OLE parse EXCEL ,run error
by perllee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |