AutoWidthCol ignoring merged cells
Posted: Wed Jan 28, 2015 7:25 pm
Lars, The TXLSWorksheet.AutoWidthCol appears to ignore all cells within a merged cell area when looking for the largest cell pixel length in the column. I'm guessing this is a bug as Excel does not ignore merged cells when auto setting the width. I can understand skipping if the merge areas has multiple columns, but not when the area is merging rows within the same column. (AutoHeightRow doesn't check for merged areas at all.) Could you look into this?
Thanks!
Thanks!
Code: Select all
XLS[0].AutoWidthCols(0,XLS[fSheetCount-1].LastCol);