Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Transpose Ranges

Francois Botha edited this pageFeb 26, 2018 ·2 revisions

Transpose Ranges

We start with the basic table:

BasicTable.jpg

varworkbook=newXLWorkbook("BasicTable.xlsx");varws=workbook.Worksheet(1);varrngTable=ws.Range("B2:F6");rngTable.Transpose(XLTransposeOptions.MoveCells);ws.Columns().AdjustToContents();workbook.SaveAs("TransposeRanges.xlsx");

And we end up with the following table:
Note: Notice how the Transpose function correctly preserves the formats.

TransposeRanges.jpg

FAQ

Examples

Real world scenarios

Time Savers

Performance and Memory

Misc

Inserting Data/Tables

Styles

Ranges

Rows

Columns

Page Setup (Print Options)

AutoFilters

Comments

Dev docs

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp