in reply to Re: Error getting number of rows in excel.
in thread Error getting number of rows in excel.


You can import the OLE constants using Win32::OLE::Const:
use Win32::OLE::Const 'Microsoft Excel'; print xlUp; # gives -4162

--
John.