in reply to Re: set_align() of merged cells in Spreadsheet::WriteExcel
in thread set_align() of merged cells in Spreadsheet::WriteExcel
Wow - I'm more than a bit impressed to hear from the module author. Thanks for taking the time.
I've tested your suggestion, and thought you might find some feedback useful:
I'm designing for Excel 2000. In Excel 2000, the code you suggest results in the token being right aligned, but in the first cell, even though the specified cells appear merged.
Similarly, changing the alignment to 'center' produces the token centred in the first cell.
This therefore solves left-aligning, since specifying align => 'left' left-aligns the token in the first cell.
To right align, your suggested code does disengage the Excel 95 'center' default, but I've had to add explicitly writing the token to the last cell with align => 'right', which right aligns the token in the last cell.
And to centre-align, I use the merge_cells + set_merge combination of the original post.
I hope this is useful for your next revision.
Thanks, though, for an overall fab module.
|
|---|