in reply to FindNext function in OLE Excel

I tried playing with Find and FindNext methods of Excel and this seem to work:
my $range = $wb->Sheets('Sheet1')->Range("B1:B10"); my $found = $range->Find({ What => 'John' }); my $firstfound = $found; do { warn $found->{Address}," = ",$found->{Value},"\n"; $found = $range->FindNext($found); } while($found && $found->{Address} ne $firstfound->{Address});
It seems that FindNext have to be called upon the search range and provide last cell found by Find (a Range object). Unfortunately the FindNext cycle back to first item found, thus that condition in the while to break that. I had three Johns in my sample spreadsheet, so I got:
$B$2 = John $B$4 = John $B$7 = John
Also, there is no need to activate cell to change its properties, you use
$found->Font->{Size} -= 2;
-- Hope that helps, Roman