in reply to Re: Error getting number of rows in excel.in thread Error getting number of rows in excel.
use Win32::OLE::Const 'Microsoft Excel'; print xlUp; # gives -4162 [download]
-- John.