ycphs / openxlsx

openxlsx - a fast way to read and write complex xslx files
https://ycphs.github.io/openxlsx/
Other
220 stars 74 forks source link

Could `mergeCells` have the same behaviour as in Excel, i.e. merging AND centering effect by default? #388

Closed olivier7121 closed 11 months ago

JanMarvin commented 1 year ago

I assume the answer is yes. All it would need would be a addStyle call with center on the merged cell. Would you like to create a pull request for this?

olivier7121 commented 1 year ago

Thanks for the quick reply, @JanMarvin.

Yes, that's what I did: I called mergeCells and then applied a centering style with addStyle. My proposal (and it was just an enhancement proposal, not an issue, I hope I got this right) was simply to embed this centering feature by default within mergeCells - so as to replicate the behaviour in Excel. Of course not a high priority request.

github-actions[bot] commented 11 months ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 11 months ago

This issue was closed because it has been stalled for 7 days with no activity.