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

Defining Ranges

Francois Botha edited this pageFeb 26, 2018 ·3 revisions

DefiningRanges.jpg

varworkbook=newXLWorkbook();varws=workbook.Worksheets.Add("Defining a Range");// With a stringvarrange1=ws.Range("A1:B1");range1.Cell(1,1).Value="ws.Range(\"A1:B1\").Merge()";range1.Merge();// With two XLAddressesvarrange2=ws.Range(ws.Cell(2,1).Address,ws.Cell(2,2).Address);range2.Cell(1,1).Value="ws.Range(ws.Cell(2, 1).Address, ws.Cell(2, 2).Address).Merge()";range2.Merge();// With two stringsvarrange4=ws.Range("A3","B3");range4.Cell(1,1).Value="ws.Range(\"A3\",\"B3\").Merge()";range4.Merge();// With 4 pointsvarrange5=ws.Range(4,1,4,2);range5.Cell(1,1).Value="ws.Range(4, 1, 4, 2).Merge()";range5.Merge();ws.Column("A").AdjustToContents();workbook.SaveAs("DefiningRanges.xlsx");

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