Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
You don’t always want the same number of cells in every row or column. For example, you might want to put a title in a cell that spans several columns. Or, if creating an invoice, you might want fewer columns for the total. To make one cell from two or more cells, merge them. Microsoft Excel lets users select files and merge them to structure the spreadsheet the way they want.
The following steps describe how to merge cells in the worksheet using MS Excel.
The Aspose.Cells.Cells Class has some useful methods for the task. For example, the method Merge() merges the cells into a single cell within a specified range.
The following example shows how to merge cells (C6:E7) in a worksheet.
The following steps describe how to split merged cells using Microsoft Excel.
The class Aspose.Cells.Cells has a method named UnMerge() that splits the cells into their original state. The method unmerges the cells using the cell’s reference in the merged cell range.
The following example shows how to split the merged cells (C6). The example uses the file created in the previous example and splits the merged cells.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.