Bintuch has asked for the wisdom of the Perl Monks concerning the following question:

I'm looking to set the borders of a single cell in Excel. This is the code I'm using, which doesn't work..
my @Edges = qw(xlEdgeBottom xlEdgeLeft xlEdgeRight xlEdgeTop); #foreach my $edge (@Edges) { $SheetWaferMap->Cells($ValueY,$ValueX)->Borders(eval($edge))->{Lin +eStyle} = "xlContinuous"; $SheetWaferMap->Cells($ValueY,$ValueX)->Borders(eval($edge))->{Wei +ght} = "xlThick"; $SheetWaferMap->Cells($ValueY,$ValueX)->Borders(eval($edge))->{Col +orIndex} = 6; }
What am I doing wrong?

Replies are listed 'Best First'.
Re: Borders of a single cell in Excel
by Corion (Patriarch) on Sep 14, 2008 at 14:40 UTC
      I'll try that, thanks.
        Hi, it didn't work. Eventually, I've tried some differnet code that worked:
        my @Edges = qw(xlEdgeBottom xlEdgeLeft xlEdgeRight xlEdgeT +op xlDiagonalUp xlDiagonalDown); foreach my $edge (@Edges) { $SheetWaferMap->Range("$Excel_LUT{$ValueX}$ValueY")->B +orders(eval($edge))->{LineStyle} = 7; }