M
mrichardson
Hello,
I'm working on a Perl script that needs to locate the last populated
row/column in an Excel sheet. I have tried the following:
my $TransCharWSLastRow = $TransCharWS->UsedRange->Find({What=>"*",
SearchDirection=>xlPrevious, SearchOrder=>xlByRows})->{Row};
my $TransCharWSLastCol = $TransCharWS->UsedRange->Find({What=>"*",
SearchDirection=>xlPrevious, SearchOrder=>xlByColumns})->{Column};
However, both lines return "902" which doesn't seem especially useful.
I'd be willing to wade through some documentation if anyone can point
me in the right direction.
Thanks,
Matt
I'm working on a Perl script that needs to locate the last populated
row/column in an Excel sheet. I have tried the following:
my $TransCharWSLastRow = $TransCharWS->UsedRange->Find({What=>"*",
SearchDirection=>xlPrevious, SearchOrder=>xlByRows})->{Row};
my $TransCharWSLastCol = $TransCharWS->UsedRange->Find({What=>"*",
SearchDirection=>xlPrevious, SearchOrder=>xlByColumns})->{Column};
However, both lines return "902" which doesn't seem especially useful.
I'd be willing to wade through some documentation if anyone can point
me in the right direction.
Thanks,
Matt