http://www.perlmonks.org?node_id=176388


in reply to Using Win32::OLE and Excel - Tips and Tricks

Hey there,

I just discovered the monks! I havent been a Perl programmer for a long time... its kinda new.

Thank God for your "Finding the last Column and Row"! I couldn't have done anything without it! I tried to do it myself, or look on the Web, I couldn't find anything 'till I found this one!

But... unless this is asking to much... HOW DOES IT WORK? I dont get it... Why is it searching for a "*"?

Thanks!

Keep doing a great job!

To
  • Comment on Re: Using Win32::OLE and Excel - Tips and Tricks

Replies are listed 'Best First'.
Re: Re: Using Win32::OLE and Excel - Tips and Tricks
by cacharbe (Curate) on Jun 22, 2002 at 02:05 UTC
    I'm searching for everything (or better, anything), starting at the end (either last row, or last column).

    The row/column properties return the first area in the specified range that matches, so in this case, it starts at the end of the sheet, either last row or last column,(because of the SearchDirection=>xlPrevious) looking for anything, finds it in the last row/column with data in it and returns that (as an int).

    Hope that makes sense.

    C-.