RAS Playground 日本語 GitHub

Type definitions (Excel, VBA)

Excel

These are the type definitions (an excerpt) of the Excel object model bundled with RAS. They are used for completion and type checking, and members not listed here are errors (members of a value of type object are late-bound and are not checked).

Extension methods (range.lastRow(), ws.find(), book.sheet(), etc.) are in Range, sheets and workbooks.

Reference

Interface Excel.Application

Represents the entire Excel application.

Microsoft reference

#
screenUpdating: boolean

Whether the screen is redrawn. Setting it to false makes macros faster.

Microsoft reference

VBA: ScreenUpdating

#
enableEvents: boolean

Whether events are raised.

Microsoft reference

VBA: EnableEvents

#
calculation: XlCalculation

The calculation mode (automatic / manual). Setting it fails when no workbook is open.

Microsoft reference

VBA: Calculation

#
displayAlerts: boolean

Whether confirmation messages and alerts are shown.

Microsoft reference

VBA: DisplayAlerts

#
statusBar: string | boolean

The status bar text. Assigning false restores Excel's default display. Returns false while Excel controls the display.

Microsoft reference

VBA: StatusBar

#
displayStatusBar: boolean

Whether the status bar is shown.

Microsoft reference

VBA: DisplayStatusBar

#
cursor: XlMousePointer

The shape of the mouse pointer.

Microsoft reference

VBA: Cursor

#
interactive: boolean

Whether keyboard and mouse input is accepted.

Microsoft reference

VBA: Interactive

#
enableCancelKey: XlEnableCancelKey

How Esc / Ctrl+Break is handled while a macro runs.

Microsoft reference

VBA: EnableCancelKey

#
cutCopyMode: XlCutCopyMode

The state of Cut / Copy mode. Assign 0 (VBA's False) to cancel it.

Microsoft reference

VBA: CutCopyMode

#
caption: string

The name shown in the title bar.

Microsoft reference

VBA: Caption

#
readonly version: string

The Excel version number (such as "16.0").

Microsoft reference

VBA: Version

#
readonly operatingSystem: string

The name and version of the operating system.

Microsoft reference

VBA: OperatingSystem

#
userName: string

The current user name.

Microsoft reference

VBA: UserName

#
readonly hwnd: int

The handle of Excel's main window.

Microsoft reference

VBA: Hwnd

#
readonly activeWorkbook: Workbook

The active workbook. Nothing if no workbook is open.

Microsoft reference

VBA: ActiveWorkbook

#
readonly activeSheet: Worksheet | Chart

The active sheet (a worksheet or a chart sheet). Nothing if no workbook is open.

Microsoft reference

VBA: ActiveSheet

#
readonly activeCell: Range

The active cell.

Microsoft reference

VBA: ActiveCell

#
readonly activeWindow: Window

The active window.

Microsoft reference

VBA: ActiveWindow

#
readonly activeChart: Chart

The active chart.

Microsoft reference

VBA: ActiveChart

#
readonly selection: object

The currently selected object (a Range for a cell range).

Microsoft reference

VBA: Selection

#
readonly thisWorkbook: Workbook

The workbook that contains the running macro.

Microsoft reference

VBA: ThisWorkbook

#
readonly thisCell: Range

The cell that is calling the user-defined function.

Microsoft reference

VBA: ThisCell

#
readonly workbooks: Workbooks

The collection of all open workbooks.

Microsoft reference

VBA: Workbooks

#
readonly worksheets: Sheets<Worksheet>

All worksheets in the active workbook.

Microsoft reference

VBA: Worksheets

#
readonly sheets: Sheets

All sheets in the active workbook (including chart sheets).

Microsoft reference

VBA: Sheets

#
readonly charts: Sheets<Chart>

All chart sheets in the active workbook.

Microsoft reference

VBA: Charts

#
readonly windows: Windows

The collection of all windows.

Microsoft reference

VBA: Windows

#
readonly names: Names

The collection of defined names in the active workbook.

Microsoft reference

VBA: Names

#
readonly worksheetFunction: WorksheetFunction

An object for calling worksheet functions from VBA.

Microsoft reference

VBA: WorksheetFunction

#
range(cell1: any, cell2?: any): Range

Returns a cell or cell range on the active sheet.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Range

#
cells(row?: any, col?: any): Range

Returns cells of the active sheet. All cells when called without arguments.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Cells

#
rows(index?: any): Range

Returns rows of the active sheet. All rows when called without arguments.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Rows

#
columns(index?: any): Range

Returns columns of the active sheet. All columns when called without arguments.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Columns

#
union(arg1: Range, arg2: Range, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): Range

Returns a range that combines several cell ranges into one.

Microsoft reference

VBA: Union

#
intersect(arg1: Range, arg2: Range, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): Range

Returns the intersection of several cell ranges. Nothing if they do not overlap.

Microsoft reference

VBA: Intersect

#
evaluate(name: any): cellValue

Evaluates a name or formula string to an object or a value.

Microsoft reference

VBA: Evaluate

#
run(macro: any, arg1?: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): any

Calls a macro or function by name.

Microsoft reference

VBA: Run

#
onTime(earliestTime: any, procedure: string, latestTime?: any, schedule?: any): void

Schedules a procedure to run at the given time.

Microsoft reference

VBA: OnTime

#
onKey(key: string, procedure?: any): void

Assigns a procedure to a keystroke.

Microsoft reference

VBA: OnKey

#
wait(time: any): boolean

Pauses the macro until the given time.

Microsoft reference

VBA: Wait

#
calculate(): void

Recalculates all open workbooks.

Microsoft reference

VBA: Calculate

#
calculateFull(): void

Forces a full recalculation of all open workbooks.

Microsoft reference

VBA: CalculateFull

#
calculateFullRebuild(): void

Rebuilds the dependencies and then does a full recalculation.

Microsoft reference

VBA: CalculateFullRebuild

#
inputBox(prompt: string, title?: any, defaultValue?: any, left?: any, top?: any, helpFile?: any, helpContextId?: any, type?: any): any

Shows an input dialog. type specifies the kind of value accepted (number, cell range, and so on).

Microsoft reference

VBA: InputBox

#
getOpenFilename(fileFilter?: any, filterIndex?: any, title?: any, buttonText?: any, multiSelect?: any): string | boolean | any[]

Shows the Open dialog and returns the path (false when canceled). Does not open the file. With multiSelect set to true, returns an array of the chosen paths (typeof is "Variant()"). The array Excel returns is 1-based, but it is converted to 0-based like other RAS arrays.

Microsoft reference

VBA: GetOpenFilename

#
getSaveAsFilename(initialFilename?: any, fileFilter?: any, filterIndex?: any, title?: any, buttonText?: any): string | boolean

Shows the Save As dialog and returns the path (false when canceled). Does not save.

Microsoft reference

VBA: GetSaveAsFilename

#
fileDialog(fileDialogType: Office.MsoFileDialogType): Office.FileDialog

Returns a file / folder picker dialog object.

Microsoft reference

VBA: FileDialog

#
goto(reference?: any, scroll?: any): void

Goes to and selects the given cell range or procedure.

Microsoft reference

VBA: Goto

#
quit(): void

Quits Excel.

Microsoft reference

VBA: Quit

#
volatile(volatile?: any): void

Makes a user-defined function volatile (evaluated on every recalculation).

Microsoft reference

VBA: Volatile

#
caller(index?: any): any

Returns information about the macro's caller (a Range for a function called from a cell).

Microsoft reference

VBA: Caller

#
international(index?: any): any

Returns country/region settings (separators and so on).

Microsoft reference

VBA: International

#
readonly pathSeparator: string

The path separator.

Microsoft reference

VBA: PathSeparator

#
decimalSeparator: string

The decimal separator.

Microsoft reference

VBA: DecimalSeparator

#
thousandsSeparator: string

The thousands separator.

Microsoft reference

VBA: ThousandsSeparator

#
match(arg1: cellValue, arg2: any, arg3?: any): cellValue

Calls the worksheet function MATCH. Returns an error value instead of raising a run-time error when not found.

Microsoft reference

VBA: Match

#
index(arg1: any, arg2: any, arg3?: any, arg4?: any): cellValue

Calls the worksheet function INDEX. Returns an error value on failure.

Microsoft reference

VBA: Index

#
vLookup(arg1: cellValue, arg2: any, arg3: any, arg4?: any): cellValue

Calls the worksheet function VLOOKUP. Returns an error value when not found.

Microsoft reference

VBA: VLookup

#
transpose(arg1: any): any

Swaps the rows and columns of an array.

Microsoft reference

VBA: Transpose

#
convertFormula(formula: any, fromReferenceStyle: XlReferenceStyle, toReferenceStyle?: any, toAbsolute?: any, relativeTo?: any): any

Converts the reference style of a formula (A1 / R1C1, relative / absolute).

Microsoft reference

VBA: ConvertFormula

#
readonly commandBars: object

The collection of command bars.

Microsoft reference

VBA: CommandBars

#
readonly vbe: object

The object model of the VBA editor.

Microsoft reference

VBA: VBE

#
readonly addIns: object

The collection of add-ins.

Microsoft reference

VBA: AddIns

#
readonly comAddIns: object

The collection of COM add-ins.

Microsoft reference

VBA: COMAddIns

#
referenceStyle: XlReferenceStyle

The reference style of formulas (A1 / R1C1).

Microsoft reference

VBA: ReferenceStyle

#
readonly ready: boolean

Whether Excel is ready to accept operations.

Microsoft reference

VBA: Ready

#
readonly calculationState: XlCalculationState

The progress of the calculation.

Microsoft reference

VBA: CalculationState

#
readonly calculationVersion: int

The version number of the calculation engine.

Microsoft reference

VBA: CalculationVersion

#
moveAfterReturn: boolean

Whether the active cell moves after pressing Enter.

Microsoft reference

VBA: MoveAfterReturn

#
moveAfterReturnDirection: XlDirection

The direction the active cell moves after pressing Enter.

Microsoft reference

VBA: MoveAfterReturnDirection

#
enableAnimations: boolean

Whether inserting and deleting rows or columns is animated.

Microsoft reference

VBA: EnableAnimations

#
printCommunication: boolean

Whether Excel communicates with the printer. Setting it to false makes PageSetup settings faster.

Microsoft reference

VBA: PrintCommunication

Whether to ask about updating links when opening a workbook.

Microsoft reference

VBA: AskToUpdateLinks

#
automationSecurity: Office.MsoAutomationSecurity

The macro security used when files are opened from a program.

Microsoft reference

VBA: AutomationSecurity

#
displayFullScreen: boolean

Whether Excel is in full-screen mode.

Microsoft reference

VBA: DisplayFullScreen

#
windowState: XlWindowState

The state of the main window (maximized / minimized / normal).

Microsoft reference

VBA: WindowState

#
width: double

The width of the main window (points).

Microsoft reference

VBA: Width

#
height: double

The height of the main window (points).

Microsoft reference

VBA: Height

#
left: double

The position of the main window's left edge (points).

Microsoft reference

VBA: Left

#
top: double

The position of the main window's top edge (points).

Microsoft reference

VBA: Top

#
visible: boolean

Whether Excel's window is visible.

Microsoft reference

VBA: Visible

#
sendKeys(keys: any, wait?: any): void

Sends keystrokes to the active application.

Microsoft reference

VBA: SendKeys

#
undo(): void

Undoes the last user action.

Microsoft reference

VBA: Undo

#
repeat(): void

Repeats the last user action.

Microsoft reference

VBA: Repeat

#
readonly application: Application

VBA: Application

#
readonly parent: Application

VBA: Parent

#
readonly name: string

VBA: Name

#
readonly build: int

VBA: Build

#
readonly path: string

VBA: Path

#
readonly startupPath: string

VBA: StartupPath

#
readonly templatesPath: string

VBA: TemplatesPath

#
readonly libraryPath: string

VBA: LibraryPath

#
readonly userLibraryPath: string

VBA: UserLibraryPath

#
defaultFilePath: string

VBA: DefaultFilePath

#
readonly organizationName: string

VBA: OrganizationName

#
readonly productCode: string

VBA: ProductCode

#
activePrinter: string

VBA: ActivePrinter

#
calculationInterruptKey: XlCalculationInterruptKey

VBA: CalculationInterruptKey

#
calculateBeforeSave: boolean

VBA: CalculateBeforeSave

#
iteration: boolean

VBA: Iteration

#
maxIterations: int

VBA: MaxIterations

#
maxChange: double

VBA: MaxChange

#
displayFormulaBar: boolean

VBA: DisplayFormulaBar

#
displayScrollBars: boolean

VBA: DisplayScrollBars

#
readonly usableWidth: double

VBA: UsableWidth

#
readonly usableHeight: double

VBA: UsableHeight

#
userControl: boolean

VBA: UserControl

#
useSystemSeparators: boolean

VBA: UseSystemSeparators

#
sheetsInNewWorkbook: int

VBA: SheetsInNewWorkbook

#
standardFont: string

VBA: StandardFont

#
standardFontSize: double

VBA: StandardFontSize

#
cellDragAndDrop: boolean

VBA: CellDragAndDrop

#
copyObjectsWithCells: boolean

VBA: CopyObjectsWithCells

#
editDirectlyInCell: boolean

VBA: EditDirectlyInCell

#
enableAutoComplete: boolean

VBA: EnableAutoComplete

#
readonly dialogs: object

VBA: Dialogs

#
readonly recentFiles: object

VBA: RecentFiles

#
calculateUntilAsyncQueriesDone(): void

VBA: CalculateUntilAsyncQueriesDone

#
executeExcel4Macro(str: string): any

VBA: ExecuteExcel4Macro

#
centimetersToPoints(centimeters: double): double

VBA: CentimetersToPoints

#
inchesToPoints(inches: double): double

VBA: InchesToPoints

#
checkSpelling(word: string, customDictionary?: any, ignoreUppercase?: any): boolean

VBA: CheckSpelling

#
getPhonetic(text?: any): string

VBA: GetPhonetic

#
addCustomList(listArray: any, byRow?: any): void

VBA: AddCustomList

#
deleteCustomList(listNum: int): void

VBA: DeleteCustomList

#
onRepeat(text: string, procedure: string): void

VBA: OnRepeat

#
onUndo(text: string, procedure: string): void

VBA: OnUndo

excel.d.ras

Interface Excel.Workbooks

The collection of all open workbooks.

Microsoft reference

#
(index: any): Workbook

Returns a workbook by index or workbook name (default member).

Microsoft reference

#
item(index: any): Workbook

Returns a workbook by index or workbook name.

Microsoft reference

VBA: Item

#
readonly count: int

The number of open workbooks.

Microsoft reference

VBA: Count

#
add(template?: any): Workbook

Creates a new workbook.

Microsoft reference

VBA: Add

#
open(filename: string, updateLinks?: any, readOnly?: any, format?: any, password?: any, writeResPassword?: any, ignoreReadOnlyRecommended?: any, origin?: any, delimiter?: any, editable?: any, notify?: any, converter?: any, addToMru?: any, local?: any, corruptLoad?: any): Workbook

Opens a workbook.

Microsoft reference

VBA: Open

#
openText(filename: string, origin?: any, startRow?: any, dataType?: any, textQualifier?: XlTextQualifier, consecutiveDelimiter?: any, tab?: any, semicolon?: any, comma?: any, space?: any, other?: any, otherChar?: any, fieldInfo?: any, textVisualLayout?: any, decimalSeparator?: any, thousandsSeparator?: any, trailingMinusNumbers?: any, local?: any): void

Opens a text file as a new workbook, specifying how it is delimited.

Microsoft reference

VBA: OpenText

#
openXML(filename: string, stylesheets?: any, loadOption?: any): Workbook

Opens an XML data file.

Microsoft reference

VBA: OpenXML

#
close(): void

Closes all open workbooks.

Microsoft reference

VBA: Close

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Workbook

Represents an Excel workbook.

Microsoft reference

#
readonly name: string

The file name of the workbook (without the path).

Microsoft reference

VBA: Name

#
readonly fullName: string

The full file name including the path.

Microsoft reference

VBA: FullName

#
readonly path: string

The path of the folder that contains the workbook. An empty string if not saved yet.

Microsoft reference

VBA: Path

#
saved: boolean

true if nothing has changed since the last save. Assigning true marks the workbook as unchanged.

Microsoft reference

VBA: Saved

#
readonly readOnly: boolean

Whether the workbook is open read-only.

Microsoft reference

VBA: ReadOnly

#
readonly worksheets: Sheets<Worksheet>

All worksheets in the workbook.

Microsoft reference

VBA: Worksheets

#
readonly sheets: Sheets

All sheets in the workbook (including chart sheets).

Microsoft reference

VBA: Sheets

#
readonly names: Names

The collection of defined names in the workbook.

Microsoft reference

VBA: Names

#
readonly windows: Windows

The collection of windows showing the workbook.

Microsoft reference

VBA: Windows

#
readonly activeSheet: Worksheet | Chart

The active sheet of the workbook.

Microsoft reference

VBA: ActiveSheet

#
save(): void

Saves the workbook.

Microsoft reference

VBA: Save

#
saveAs(filename?: any, fileFormat?: any, password?: any, writeResPassword?: any, readOnlyRecommended?: any, createBackup?: any, accessMode?: XlSaveAsAccessMode, conflictResolution?: any, addToMru?: any, textCodepage?: any, textVisualLayout?: any, local?: any): void

Saves under a different name or format.

Microsoft reference

VBA: SaveAs

#
saveCopyAs(filename: any): void

Saves a copy to a file, leaving the open workbook as it is.

Microsoft reference

VBA: SaveCopyAs

#
close(saveChanges?: any, filename?: any, routeWorkbook?: any): void

Closes the workbook.

Microsoft reference

VBA: Close

#
activate(): void

Activates the workbook.

Microsoft reference

VBA: Activate

#
protect(password?: any, structure?: any, windows?: any): void

Protects the workbook's structure or windows.

Microsoft reference

VBA: Protect

#
unprotect(password?: any): void

Removes the workbook's protection.

Microsoft reference

VBA: Unprotect

#
refreshAll(): void

Refreshes all external data ranges and PivotTables.

Microsoft reference

VBA: RefreshAll

#
readonly fileFormat: XlFileFormat

The file format of the workbook.

Microsoft reference

VBA: FileFormat

#
readonly hasVBProject: boolean

Whether the workbook has a VBA project.

Microsoft reference

VBA: HasVBProject

#
readonly vbProject: object

The workbook's VBA project (VBIDE.VBProject).

Microsoft reference

VBA: VBProject

#
readonly builtinDocumentProperties: object

The built-in document properties (author, title, and so on).

Microsoft reference

VBA: BuiltinDocumentProperties

#
readonly customDocumentProperties: object

The custom document properties.

Microsoft reference

VBA: CustomDocumentProperties

#
readonly application: Application

The Application object the workbook belongs to.

Microsoft reference

VBA: Application

#
readonly parent: object

The parent object.

Microsoft reference

VBA: Parent

#
readonly codeName: string

The code name of the workbook module (ThisWorkbook by default).

Microsoft reference

VBA: CodeName

#
date1904: boolean

Whether the workbook uses the 1904 date system.

Microsoft reference

VBA: Date1904

#
exportAsFixedFormat(type: XlFixedFormatType, filename?: any, quality?: any, includeDocProperties?: any, ignorePrintAreas?: any, from?: any, to?: any, openAfterPublish?: any, fixedFormatExtClassPtr?: any): void

Exports to PDF or XPS format.

Microsoft reference

VBA: ExportAsFixedFormat

#
printOut(from?: any, to?: any, copies?: any, preview?: any, activePrinter?: any, printToFile?: any, collate?: any, prToFileName?: any, ignorePrintAreas?: any): void

Prints the workbook.

Microsoft reference

VBA: PrintOut

#
readonly connections: object

The collection of external data connections.

Microsoft reference

VBA: Connections

#
readonly queries: object

The collection of Power Query queries.

Microsoft reference

VBA: Queries

#
readonly activeChart: Chart

VBA: ActiveChart

#
readonly charts: Sheets<Chart>

VBA: Charts

#
readonly styles: object

VBA: Styles

#
readonly hasPassword: boolean

VBA: HasPassword

#
password: string

VBA: Password

#
readonly protectStructure: boolean

VBA: ProtectStructure

#
readonly protectWindows: boolean

VBA: ProtectWindows

#
readonly readOnlyRecommended: boolean

VBA: ReadOnlyRecommended

#
readonly multiUserEditing: boolean

VBA: MultiUserEditing

#
isAddin: boolean

VBA: IsAddin

VBA: UpdateLinks

#
precisionAsDisplayed: boolean

VBA: PrecisionAsDisplayed

#
checkCompatibility: boolean

VBA: CheckCompatibility

#
readonly writeReserved: boolean

VBA: WriteReserved

#
autoSaveOn: boolean

VBA: AutoSaveOn

#
colors(index?: any): any

VBA: Colors

#
newWindow(): Window

VBA: NewWindow

#
printPreview(enableChanges?: any): void

VBA: PrintPreview

#
changeFileAccess(mode: XlFileAccess, writePassword?: any, notify?: any): void

VBA: ChangeFileAccess

VBA: ChangeLink

VBA: BreakLink

#
linkSources(type?: any): any

VBA: LinkSources

VBA: UpdateLink

#
runAutoMacros(which: XlRunAutoMacro): void

VBA: RunAutoMacros

VBA: FollowHyperlink

#
deleteNumberFormat(numberFormat: string): void

VBA: DeleteNumberFormat

#
resetColors(): void

VBA: ResetColors

excel.d.ras

Interface Excel.Sheets

interface Sheets<T = Worksheet | Chart>

The collection of sheets (worksheets / chart sheets) in a workbook.

Microsoft reference

#
(index: any): T

Returns a sheet by index or sheet name (default member).

Microsoft reference

#
item(index: any): T

Returns a sheet by index or sheet name.

Microsoft reference

VBA: Item

#
readonly count: int

The number of sheets.

Microsoft reference

VBA: Count

#
add(before?: any, after?: any, count?: any, type?: any): T

Adds a new sheet and activates it.

Microsoft reference

VBA: Add

#
copy(before?: any, after?: any): void

Copies the sheets. Without a position, the copy is made in a new workbook.

Microsoft reference

VBA: Copy

#
move(before?: any, after?: any): void

Moves the sheets. Without a position, they move to a new workbook.

Microsoft reference

VBA: Move

#
delete(): void

Deletes the sheets.

Microsoft reference

VBA: Delete

#
select(replace?: any): void

Selects the sheets.

Microsoft reference

VBA: Select

#
printOut(from?: any, to?: any, copies?: any, preview?: any, activePrinter?: any, printToFile?: any, collate?: any, prToFileName?: any, ignorePrintAreas?: any): void

Prints the sheets.

Microsoft reference

VBA: PrintOut

#
visible: any

Whether the sheets are visible.

Microsoft reference

VBA: Visible

#
printPreview(enableChanges?: any): void

VBA: PrintPreview

#
fillAcrossSheets(range: Range, type?: XlFillWith): void

VBA: FillAcrossSheets

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Worksheet

Represents a worksheet.

Microsoft reference

#
name: string

The sheet name (shown on the sheet tab).

Microsoft reference

VBA: Name

#
readonly codeName: string

The code name of the sheet module.

Microsoft reference

VBA: CodeName

#
readonly index: int

The position of the sheet in the sheet order (1-based).

Microsoft reference

VBA: Index

#
visible: XlSheetVisibility

The visibility of the sheet (visible / hidden / hidden so that the user cannot unhide it).

Microsoft reference

VBA: Visible

#
cells(row?: any, col?: any): Range

Returns cells on the sheet. All cells when called without arguments.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Cells

#
range(cell1: any, cell2?: any): Range

Returns a cell or cell range.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Range

#
rows(index?: any): Range

Returns rows of the sheet. All rows when called without arguments.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Rows

#
columns(index?: any): Range

Returns columns of the sheet. All columns when called without arguments.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Columns

#
readonly usedRange: Range

The used cell range.

Microsoft reference

VBA: UsedRange

#
activate(): void

Activates the sheet.

Microsoft reference

VBA: Activate

#
select(replace?: any): void

Selects the sheet.

Microsoft reference

VBA: Select

#
copy(before?: any, after?: any): void

Copies the sheet. Without a position, the copy is made in a new workbook.

Microsoft reference

VBA: Copy

#
move(before?: any, after?: any): void

Moves the sheet. Without a position, it moves to a new workbook.

Microsoft reference

VBA: Move

#
delete(): void

Deletes the sheet.

Microsoft reference

VBA: Delete

#
protect(password?: any, drawingObjects?: any, contents?: any, scenarios?: any, userInterfaceOnly?: any, allowFormattingCells?: any, allowFormattingColumns?: any, allowFormattingRows?: any, allowInsertingColumns?: any, allowInsertingRows?: any, allowInsertingHyperlinks?: any, allowDeletingColumns?: any, allowDeletingRows?: any, allowSorting?: any, allowFiltering?: any, allowUsingPivotTables?: any): void

Protects the sheet.

Microsoft reference

VBA: Protect

#
unprotect(password?: any): void

Removes the sheet's protection.

Microsoft reference

VBA: Unprotect

#
readonly protectContents: boolean

Whether the contents of the sheet are protected.

Microsoft reference

VBA: ProtectContents

#
calculate(): void

Recalculates only this sheet.

Microsoft reference

VBA: Calculate

#
paste(destination?: any, link?: any): void

Pastes the contents of the clipboard onto the sheet.

Microsoft reference

VBA: Paste

#
pasteSpecial(format?: any, link?: any, displayAsIcon?: any, iconFileName?: any, iconIndex?: any, iconLabel?: any, noHTMLFormatting?: any): void

Pastes the contents of the clipboard in the specified format.

Microsoft reference

VBA: PasteSpecial

#
readonly shapes: Shapes

The collection of shapes on the sheet.

Microsoft reference

VBA: Shapes

#
readonly listObjects: ListObjects

The collection of tables on the sheet.

Microsoft reference

VBA: ListObjects

#
chartObjects(index?: any): object

Returns one embedded chart, or the whole collection.

Microsoft reference

VBA: ChartObjects

#
readonly names: Names

The collection of sheet-level defined names.

Microsoft reference

VBA: Names

The collection of hyperlinks on the sheet.

Microsoft reference

VBA: Hyperlinks

#
readonly comments: Comments

The collection of comments (notes) on the sheet.

Microsoft reference

VBA: Comments

#
readonly pageSetup: PageSetup

The page setup.

Microsoft reference

VBA: PageSetup

#
readonly autoFilter: AutoFilter

The AutoFilter settings. Nothing if there is no filter.

Microsoft reference

VBA: AutoFilter

#
autoFilterMode: boolean

Whether the AutoFilter arrows are shown. Assigning false removes the filter.

Microsoft reference

VBA: AutoFilterMode

#
readonly filterMode: boolean

Whether the sheet is in a filtered state.

Microsoft reference

VBA: FilterMode

#
showAllData(): void

Clears the filtering and shows all rows.

Microsoft reference

VBA: ShowAllData

#
readonly tab: object

The sheet tab (its color and so on).

Microsoft reference

VBA: Tab

#
readonly parent: object

The parent object (usually the workbook).

Microsoft reference

VBA: Parent

#
readonly application: Application

The Application object the sheet belongs to.

Microsoft reference

VBA: Application

#
evaluate(name: any): cellValue

Evaluates a name or formula string relative to this sheet.

Microsoft reference

VBA: Evaluate

#
printOut(from?: any, to?: any, copies?: any, preview?: any, activePrinter?: any, printToFile?: any, collate?: any, prToFileName?: any, ignorePrintAreas?: any): void

Prints the sheet.

Microsoft reference

VBA: PrintOut

#
exportAsFixedFormat(type: XlFixedFormatType, filename?: any, quality?: any, includeDocProperties?: any, ignorePrintAreas?: any, from?: any, to?: any, openAfterPublish?: any, fixedFormatExtClassPtr?: any): void

Exports to PDF or XPS format.

Microsoft reference

VBA: ExportAsFixedFormat

#
enableCalculation: boolean

Whether this sheet takes part in automatic recalculation.

Microsoft reference

VBA: EnableCalculation

#
standardWidth: double

The standard column width.

Microsoft reference

VBA: StandardWidth

#
readonly next: Worksheet | Chart

The next sheet. Nothing for the last sheet.

Microsoft reference

VBA: Next

#
readonly previous: Worksheet | Chart

The previous sheet. Nothing for the first sheet.

Microsoft reference

VBA: Previous

#
readonly sort: Sort

The sort settings of the sheet.

Microsoft reference

VBA: Sort

#
readonly type: XlSheetType

VBA: Type

#
readonly standardHeight: double

VBA: StandardHeight

#
readonly circularReference: Range

VBA: CircularReference

#
readonly protectionMode: boolean

VBA: ProtectionMode

#
readonly protectDrawingObjects: boolean

VBA: ProtectDrawingObjects

#
readonly protectScenarios: boolean

VBA: ProtectScenarios

#
readonly outline: object

VBA: Outline

#
readonly queryTables: object

VBA: QueryTables

#
readonly hPageBreaks: object

VBA: HPageBreaks

#
readonly vPageBreaks: object

VBA: VPageBreaks

#
scrollArea: string

VBA: ScrollArea

#
displayPageBreaks: boolean

VBA: DisplayPageBreaks

#
enableSelection: XlEnableSelection

VBA: EnableSelection

#
enableAutoFilter: boolean

VBA: EnableAutoFilter

#
enableOutlining: boolean

VBA: EnableOutlining

#
enablePivotTable: boolean

VBA: EnablePivotTable

#
pivotTables(index?: any): object

VBA: PivotTables

#
oleObjects(index?: any): object

VBA: OLEObjects

#
printPreview(enableChanges?: any): void

VBA: PrintPreview

#
saveAs(filename: string, fileFormat?: any, password?: any, writeResPassword?: any, readOnlyRecommended?: any, createBackup?: any, addToMru?: any, textCodepage?: any, textVisualLayout?: any, local?: any): void

VBA: SaveAs

#
setBackgroundPicture(filename: string): void

VBA: SetBackgroundPicture

#
resetAllPageBreaks(): void

VBA: ResetAllPageBreaks

#
checkSpelling(customDictionary?: any, ignoreUppercase?: any, alwaysSuggest?: any, spellLang?: any): void

VBA: CheckSpelling

excel.d.ras

Interface Excel.Range

Represents a cell, a row, a column, or a range of several cells.

Microsoft reference

#
(row: any, col?: any): Range

Default member (Item). In the form rng(1, 2), returns a cell relative to the top-left of the range.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

#
item(rowIndex: any, columnIndex?: any): Range

Returns the cell at a position relative to the top-left of the range.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Item

#
value: cellValue

The value of the cell. For a multi-cell range, reads and writes a two-dimensional array (1-based). It may be a cell error value (such as #N/A).

Microsoft reference

VBA: Value

#
value2: cellValue

The raw value, without conversion to Currency or Date. Dates become serial values (Double). It may be a cell error value (such as #N/A).

Microsoft reference

VBA: Value2

#
formula: any

The formula in A1 style. For a cell without a formula, the value itself.

Microsoft reference

VBA: Formula

#
formulaR1C1: any

The formula in R1C1 style.

Microsoft reference

VBA: FormulaR1C1

#
formula2: any

The formula in A1 style, with dynamic array support.

Microsoft reference

VBA: Formula2

#
readonly text: any

The text shown in the cell (after formatting).

Microsoft reference

VBA: Text

#
address(rowAbsolute?: any, columnAbsolute?: any, referenceStyle?: XlReferenceStyle, external?: any, relativeTo?: any): string

Returns the reference of the range as a string ($A$1 style by default).

Microsoft reference

VBA: Address

#
readonly row: int

The row number of the first row of the range.

Microsoft reference

VBA: Row

#
readonly column: int

The column number of the first column of the range.

Microsoft reference

VBA: Column

#
rows(index?: any): Range

Returns rows within the range. Without arguments, the range as a collection of rows.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Rows

#
columns(index?: any): Range

Returns columns within the range. Without arguments, the range as a collection of columns.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Columns

#
readonly count: int

The number of cells (or rows / columns). The generated VBA refers to CountLarge (Count fails on ranges that exceed the Long limit, such as cells of a whole sheet).

Microsoft reference

VBA: CountLarge

#
readonly countLarge: any

The number of cells. Can count even large ranges such as a whole sheet.

Microsoft reference

VBA: CountLarge

#
cells(row?: any, col?: any): Range

Returns cells within the range. Without arguments, the range itself.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Cells

#
offset(rowOffset?: any, columnOffset?: any): Range

Returns a range shifted by the given number of rows and columns.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Offset

#
resize(rowSize?: any, columnSize?: any): Range

Returns a range with the top-left fixed and a different number of rows and columns.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Resize

#
end(direction: XlDirection): Range

Returns the cell at the end of the contiguous data region (like Ctrl+arrow key).

Microsoft reference

VBA: End

#
readonly entireRow: Range

The entire rows that contain the range.

Microsoft reference

VBA: EntireRow

#
readonly entireColumn: Range

The entire columns that contain the range.

Microsoft reference

VBA: EntireColumn

#
readonly currentRegion: Range

The contiguous data region bounded by blank rows and blank columns.

Microsoft reference

VBA: CurrentRegion

#
readonly areas: object

The collection of areas of a multiple-selection range.

Microsoft reference

VBA: Areas

#
readonly worksheet: Worksheet

The worksheet that contains the range.

Microsoft reference

VBA: Worksheet

#
readonly parent: object

The parent object (usually the worksheet).

Microsoft reference

VBA: Parent

#
readonly application: Application

The Application object the range belongs to.

Microsoft reference

VBA: Application

#
readonly font: Font

The font formatting.

Microsoft reference

VBA: Font

#
readonly interior: Interior

The fill formatting.

Microsoft reference

VBA: Interior

#
readonly borders: Borders

The collection of borders.

Microsoft reference

VBA: Borders

#
numberFormat: any

The number format (format codes in English notation).

Microsoft reference

VBA: NumberFormat

#
numberFormatLocal: any

The number format (format codes in the notation of the running environment's language).

Microsoft reference

VBA: NumberFormatLocal

#
horizontalAlignment: any

The horizontal alignment.

Microsoft reference

VBA: HorizontalAlignment

#
verticalAlignment: any

The vertical alignment.

Microsoft reference

VBA: VerticalAlignment

#
wrapText: any

Whether text wraps within the cell so that all of it is shown.

Microsoft reference

VBA: WrapText

#
mergeCells: any

Whether the range contains merged cells.

Microsoft reference

VBA: MergeCells

#
readonly mergeArea: Range

The merged range that contains the given cell. The cell itself if it is not merged.

Microsoft reference

VBA: MergeArea

#
merge(across?: any): void

Merges the cells.

Microsoft reference

VBA: Merge

#
unMerge(): void

Unmerges the cells.

Microsoft reference

VBA: UnMerge

#
columnWidth: any

The column width (in characters of the standard font).

Microsoft reference

VBA: ColumnWidth

#
rowHeight: any

The row height (points).

Microsoft reference

VBA: RowHeight

#
readonly height: any

The height of the range (points).

Microsoft reference

VBA: Height

#
readonly width: any

The width of the range (points).

Microsoft reference

VBA: Width

#
readonly left: any

The distance from the left edge of the sheet to the left edge of the range (points).

Microsoft reference

VBA: Left

#
readonly top: any

The distance from the top edge of the sheet to the top edge of the range (points).

Microsoft reference

VBA: Top

#
hidden: any

Whether the rows or columns are hidden. Use it on entire rows or entire columns.

Microsoft reference

VBA: Hidden

#
locked: any

Whether the cells are locked.

Microsoft reference

VBA: Locked

#
readonly hasFormula: any

Whether the range contains formulas.

Microsoft reference

VBA: HasFormula

#
name: any

The name given to the range (a Name object). Assigning a string defines the name.

Microsoft reference

VBA: Name

#
readonly comment: Comment

The comment (note) attached to the cell. Nothing if there is none.

Microsoft reference

VBA: Comment

#
readonly validation: Validation

The data validation.

Microsoft reference

VBA: Validation

The collection of hyperlinks in the range.

Microsoft reference

VBA: Hyperlinks

#
readonly listObject: ListObject

The table the range belongs to. Nothing outside a table.

Microsoft reference

VBA: ListObject

#
find(what: any, after?: any, lookIn?: any, lookAt?: any, searchOrder?: any, searchDirection?: XlSearchDirection, matchCase?: any, matchByte?: any, searchFormat?: any): Range

Returns the first cell that matches the criteria. Nothing if not found. The search settings carry over to the next search.

Microsoft reference

VBA: Find

#
findNext(after?: any): Range

Finds the next cell with the same criteria as Find.

Microsoft reference

VBA: FindNext

#
findPrevious(after?: any): Range

Finds the previous cell with the same criteria as Find.

Microsoft reference

VBA: FindPrevious

#
replace(what: any, replacement: any, lookAt?: any, searchOrder?: any, matchCase?: any, matchByte?: any, searchFormat?: any, replaceFormat?: any, formulaVersion?: any): boolean

Replaces text within the range.

Microsoft reference

VBA: Replace

#
copy(destination?: any): void

Copies the range. Without a destination, copies to the clipboard.

Microsoft reference

VBA: Copy

#
cut(destination?: any): void

Cuts the range. Without a destination, cuts to the clipboard.

Microsoft reference

VBA: Cut

#
pasteSpecial(paste?: XlPasteType, operation?: XlPasteSpecialOperation, skipBlanks?: any, transpose?: any): void

Pastes the contents of the clipboard, specifying what to paste (values, formats, and so on).

Microsoft reference

VBA: PasteSpecial

#
clear(): void

Clears values, formulas and formats.

Microsoft reference

VBA: Clear

#
clearContents(): void

Clears only values and formulas (formats remain).

Microsoft reference

VBA: ClearContents

#
clearFormats(): void

Clears only the formats.

Microsoft reference

VBA: ClearFormats

#
clearComments(): void

Clears the comments (notes).

Microsoft reference

VBA: ClearComments

#
delete(shift?: any): void

Deletes the cells and shifts the others to fill the gap.

Microsoft reference

VBA: Delete

#
insert(shift?: any, copyOrigin?: any): void

Inserts blank cells and shifts the existing cells.

Microsoft reference

VBA: Insert

#
select(): void

Selects the range.

Microsoft reference

VBA: Select

#
activate(): void

Activates the cell.

Microsoft reference

VBA: Activate

#
autoFit(): void

Adjusts the column width or row height to fit the contents. Use it on entire rows or entire columns.

Microsoft reference

VBA: AutoFit

#
autoFill(destination: Range, type?: XlAutoFillType): void

Performs an AutoFill. destination must include the source range.

Microsoft reference

VBA: AutoFill

#
autoFilter(field?: any, criteria1?: any, operator?: XlAutoFilterOperator, criteria2?: any, visibleDropDown?: any): void

Filters with AutoFilter. With all arguments omitted, toggles the filter arrows.

Microsoft reference

VBA: AutoFilter

#
sort(key1?: any, order1?: XlSortOrder, key2?: any, type?: any, order2?: XlSortOrder, key3?: any, order3?: XlSortOrder, header?: XlYesNoGuess, orderCustom?: any, matchCase?: any, orientation?: XlSortOrientation, sortMethod?: XlSortMethod, dataOption1?: XlSortDataOption, dataOption2?: XlSortDataOption, dataOption3?: XlSortDataOption): void

Sorts the range (up to three keys).

Microsoft reference

VBA: Sort

#
removeDuplicates(columns?: any, header?: XlYesNoGuess): void

Removes duplicate rows. Pass an array of the column numbers to compare as columns.

Microsoft reference

VBA: RemoveDuplicates

#
specialCells(type: XlCellType, value?: any): Range

Returns the cells of the given kind, such as blank cells, visible cells or constant cells. Raises a run-time error if there are none.

Microsoft reference

VBA: SpecialCells

#
fillDown(): void

Copies the contents of the first row of the range downward.

Microsoft reference

VBA: FillDown

#
fillRight(): void

Copies the contents of the first column of the range to the right.

Microsoft reference

VBA: FillRight

#
textToColumns(destination?: any, dataType?: XlTextParsingType, textQualifier?: XlTextQualifier, consecutiveDelimiter?: any, tab?: any, semicolon?: any, comma?: any, space?: any, other?: any, otherChar?: any, fieldInfo?: any, decimalSeparator?: any, thousandsSeparator?: any, trailingMinusNumbers?: any): void

Splits a column of text into several columns.

Microsoft reference

VBA: TextToColumns

#
calculate(): void

Recalculates only this range.

Microsoft reference

VBA: Calculate

#
addComment(text?: any): Comment

Adds a comment (note) to the cell.

Microsoft reference

VBA: AddComment

#
characters(start?: any, length?: any): Characters

Returns Characters representing part of the text in the cell (for character-level formatting).

Microsoft reference

VBA: Characters

#
borderAround(lineStyle?: any, weight?: XlBorderWeight, colorIndex?: XlColorIndex, color?: any, themeColor?: any): void

Draws a border around the outside of the range.

Microsoft reference

VBA: BorderAround

#
range(cell1: any, cell2?: any): Range

Returns a cell range by a reference relative to this range.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

VBA: Range

#
addressLocal(rowAbsolute?: any, columnAbsolute?: any, referenceStyle?: XlReferenceStyle, external?: any, relativeTo?: any): string

VBA: AddressLocal

#
formulaLocal: any

VBA: FormulaLocal

#
formulaR1C1Local: any

VBA: FormulaR1C1Local

#
formulaArray: any

VBA: FormulaArray

#
formulaHidden: any

VBA: FormulaHidden

#
readonly hasArray: any

VBA: HasArray

#
readonly currentArray: Range

VBA: CurrentArray

#
indentLevel: any

VBA: IndentLevel

#
orientation: any

VBA: Orientation

#
shrinkToFit: any

VBA: ShrinkToFit

#
addIndent: any

VBA: AddIndent

#
style: any

VBA: Style

#
id: string

VBA: ID

#
pageBreak: int

VBA: PageBreak

#
outlineLevel: any

VBA: OutlineLevel

#
showDetail: any

VBA: ShowDetail

#
useStandardHeight: any

VBA: UseStandardHeight

#
useStandardWidth: any

VBA: UseStandardWidth

#
readonly prefixCharacter: any

VBA: PrefixCharacter

#
readonly next: Range

VBA: Next

#
readonly previous: Range

VBA: Previous

#
readonly dependents: Range

VBA: Dependents

#
readonly directDependents: Range

VBA: DirectDependents

#
readonly precedents: Range

VBA: Precedents

#
readonly directPrecedents: Range

VBA: DirectPrecedents

#
readonly formatConditions: FormatConditions

VBA: FormatConditions

#
readonly displayFormat: object

VBA: DisplayFormat

#
readonly pivotTable: object

VBA: PivotTable

#
readonly queryTable: object

VBA: QueryTable

#
clearNotes(): void

VBA: ClearNotes

#
clearOutline(): void

VBA: ClearOutline

VBA: ClearHyperlinks

#
fillUp(): void

VBA: FillUp

#
fillLeft(): void

VBA: FillLeft

#
justify(): void

VBA: Justify

#
show(): void

VBA: Show

#
dirty(): void

VBA: Dirty

#
columnDifferences(comparison: any): Range

VBA: ColumnDifferences

#
rowDifferences(comparison: any): Range

VBA: RowDifferences

#
copyFromRecordset(data: object, maxRows?: any, maxColumns?: any): int

VBA: CopyFromRecordset

#
copyPicture(appearance?: XlPictureAppearance, format?: XlCopyPictureFormat): void

VBA: CopyPicture

#
noteText(text?: any, start?: any, length?: any): string

VBA: NoteText

#
group(start?: any, end?: any, by?: any, periods?: any): void

VBA: Group

#
ungroup(): void

VBA: Ungroup

#
subtotal(groupBy: int, func: XlConsolidationFunction, totalList: any, replace?: any, pageBreaks?: any, summaryBelowData?: XlSummaryRow): void

VBA: Subtotal

#
removeSubtotal(): void

VBA: RemoveSubtotal

#
advancedFilter(action: XlFilterAction, criteriaRange?: any, copyToRange?: any, unique?: any): void

VBA: AdvancedFilter

#
printOut(from?: any, to?: any, copies?: any, preview?: any, activePrinter?: any, printToFile?: any, collate?: any, prToFileName?: any): void

VBA: PrintOut

#
printPreview(enableChanges?: any): void

VBA: PrintPreview

#
exportAsFixedFormat(type: XlFixedFormatType, filename?: any, quality?: any, includeDocProperties?: any, ignorePrintAreas?: any, from?: any, to?: any, openAfterPublish?: any, fixedFormatExtClassPtr?: any): void

VBA: ExportAsFixedFormat

#
checkSpelling(customDictionary?: any, ignoreUppercase?: any, alwaysSuggest?: any, spellLang?: any): any

VBA: CheckSpelling

excel.d.ras

Interface Excel.Font

Represents character formatting (font name, size, color, and so on).

Microsoft reference

#
name: any

The font name.

Microsoft reference

VBA: Name

#
size: any

The font size (points).

Microsoft reference

VBA: Size

#
bold: any

Whether the text is bold.

Microsoft reference

VBA: Bold

#
italic: any

Whether the text is italic.

Microsoft reference

VBA: Italic

#
underline: any

The type of underline.

Microsoft reference

VBA: Underline

#
strikethrough: any

Whether the text has a strikethrough.

Microsoft reference

VBA: Strikethrough

#
color: any

The text color (RGB value).

Microsoft reference

VBA: Color

#
colorIndex: any

The text color (color palette index).

Microsoft reference

VBA: ColorIndex

#
themeColor: any

The text color from the theme colors.

Microsoft reference

VBA: ThemeColor

#
tintAndShade: any

Lightens or darkens the color (-1 to 1).

Microsoft reference

VBA: TintAndShade

#
fontStyle: any

The name of the font style (such as "Bold Italic").

Microsoft reference

VBA: FontStyle

#
subscript: any

VBA: Subscript

#
superscript: any

VBA: Superscript

#
background: any

VBA: Background

#
themeFont: XlThemeFont

VBA: ThemeFont

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Interior

Represents the fill of a cell or shape.

Microsoft reference

#
color: any

The fill color (RGB value).

Microsoft reference

VBA: Color

#
colorIndex: any

The fill color (color palette index). xlColorIndexNone for no fill.

Microsoft reference

VBA: ColorIndex

#
pattern: any

The fill pattern.

Microsoft reference

VBA: Pattern

#
patternColor: any

The pattern color (RGB value).

Microsoft reference

VBA: PatternColor

#
patternColorIndex: any

The pattern color (color palette index).

Microsoft reference

VBA: PatternColorIndex

#
themeColor: any

The fill color from the theme colors.

Microsoft reference

VBA: ThemeColor

#
tintAndShade: any

Lightens or darkens the color (-1 to 1).

Microsoft reference

VBA: TintAndShade

#
patternThemeColor: any

VBA: PatternThemeColor

#
patternTintAndShade: any

VBA: PatternTintAndShade

#
invertIfNegative: any

VBA: InvertIfNegative

#
readonly gradient: object

VBA: Gradient

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Borders

The collection of borders of a cell range (top, bottom, left, right, inside, diagonal).

Microsoft reference

#
(index: XlBordersIndex): Border

Returns a border by position (default member).

Microsoft reference

#
item(index: XlBordersIndex): Border

Returns a border by position.

Microsoft reference

VBA: Item

#
readonly count: int

The number of borders.

Microsoft reference

VBA: Count

#
color: any

The color of all borders (RGB value).

Microsoft reference

VBA: Color

#
colorIndex: any

The color of all borders (color palette index).

Microsoft reference

VBA: ColorIndex

#
lineStyle: any

The line style of all borders.

Microsoft reference

VBA: LineStyle

#
weight: any

The weight of all borders.

Microsoft reference

VBA: Weight

#
value: any

VBA: Value

#
themeColor: any

VBA: ThemeColor

#
tintAndShade: any

VBA: TintAndShade

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Border

Represents a single border.

Microsoft reference

#
color: any

The border color (RGB value).

Microsoft reference

VBA: Color

#
colorIndex: any

The border color (color palette index).

Microsoft reference

VBA: ColorIndex

#
lineStyle: any

The line style of the border. xlLineStyleNone for no border.

Microsoft reference

VBA: LineStyle

#
weight: any

The weight of the border.

Microsoft reference

VBA: Weight

#
themeColor: any

VBA: ThemeColor

#
tintAndShade: any

VBA: TintAndShade

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Characters

Represents part of the text in a cell or shape.

Microsoft reference

#
text: string

The text of the target part.

Microsoft reference

VBA: Text

#
readonly count: int

The number of characters.

Microsoft reference

VBA: Count

#
readonly font: Font

The font formatting of the target part.

Microsoft reference

VBA: Font

#
insert(str: string): void

Replaces the target part with the inserted string.

Microsoft reference

VBA: Insert

#
delete(): void

Deletes the characters of the target part.

Microsoft reference

VBA: Delete

#
caption: string

VBA: Caption

#
phoneticCharacters: string

VBA: PhoneticCharacters

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Comment

Represents a cell comment (note).

Microsoft reference

#
text(text?: any, start?: any, overwrite?: any): string

Gets or sets the text of the comment.

Microsoft reference

VBA: Text

#
readonly author: string

The author of the comment.

Microsoft reference

VBA: Author

#
readonly shape: Shape

The shape that forms the comment's frame.

Microsoft reference

VBA: Shape

#
visible: boolean

Whether the comment is always shown.

Microsoft reference

VBA: Visible

#
delete(): void

Deletes the comment.

Microsoft reference

VBA: Delete

#
next(): Comment

VBA: Next

#
previous(): Comment

VBA: Previous

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Comments

The collection of comments (notes) on a sheet.

Microsoft reference

#
(index: any): Comment

Returns a comment by index (default member).

Microsoft reference

#
item(index: any): Comment

Returns a comment by index.

Microsoft reference

VBA: Item

#
readonly count: int

The number of comments.

Microsoft reference

VBA: Count

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Validation

Represents the data validation of a cell range.

Microsoft reference

#
add(type: XlDVType, alertStyle?: any, operator?: any, formula1?: any, formula2?: any): void

Adds data validation. If a rule already exists, call Delete first.

Microsoft reference

VBA: Add

#
modify(type?: any, alertStyle?: any, operator?: any, formula1?: any, formula2?: any): void

Changes the existing data validation.

Microsoft reference

VBA: Modify

#
delete(): void

Deletes the data validation.

Microsoft reference

VBA: Delete

#
readonly type: int

The type of data validation (a value of XlDVType).

Microsoft reference

VBA: Type

#
readonly formula1: string

The first value or formula of the condition.

Microsoft reference

VBA: Formula1

#
readonly formula2: string

The second value or formula of the condition.

Microsoft reference

VBA: Formula2

#
ignoreBlank: boolean

Whether blanks are allowed.

Microsoft reference

VBA: IgnoreBlank

#
inCellDropdown: boolean

Whether a drop-down is shown for list validation.

Microsoft reference

VBA: InCellDropdown

#
inputMessage: string

The text of the input message.

Microsoft reference

VBA: InputMessage

#
errorMessage: string

The text of the error message.

Microsoft reference

VBA: ErrorMessage

#
readonly alertStyle: int

VBA: AlertStyle

#
readonly operator: int

VBA: Operator

#
readonly value: boolean

VBA: Value

#
showInput: boolean

VBA: ShowInput

#
showError: boolean

VBA: ShowError

#
inputTitle: string

VBA: InputTitle

#
errorTitle: string

VBA: ErrorTitle

#
imeMode: int

VBA: IMEMode

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Names

The collection of defined names (named ranges).

Microsoft reference

#
(index: any, indexLocal?: any, refersTo?: any): Name

Returns a Name by index or name (default member).

Microsoft reference

#
item(index?: any, indexLocal?: any, refersTo?: any): Name

Returns a Name by index or name.

Microsoft reference

VBA: Item

#
readonly count: int

The number of defined names.

Microsoft reference

VBA: Count

#
add(name?: any, refersTo?: any, visible?: any, macroType?: any, shortcutKey?: any, category?: any, nameLocal?: any, refersToLocal?: any, categoryLocal?: any, refersToR1C1?: any, refersToR1C1Local?: any): Name

Defines a name.

Microsoft reference

VBA: Add

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Name

Represents a defined name (named range).

Microsoft reference

#
name: string

The defined name.

Microsoft reference

VBA: Name

#
refersTo: any

The formula the name refers to (in the form =Sheet1!$A$1).

Microsoft reference

VBA: RefersTo

#
readonly refersToRange: Range

The cell range the name refers to. Raises a run-time error if it does not refer to a range.

Microsoft reference

VBA: RefersToRange

#
visible: boolean

Whether the name is shown in the Name Manager.

Microsoft reference

VBA: Visible

#
delete(): void

Deletes the defined name.

Microsoft reference

VBA: Delete

#
nameLocal: string

VBA: NameLocal

#
refersToLocal: any

VBA: RefersToLocal

#
refersToR1C1: any

VBA: RefersToR1C1

#
refersToR1C1Local: any

VBA: RefersToR1C1Local

#
value: string

VBA: Value

#
comment: string

VBA: Comment

#
readonly index: int

VBA: Index

#
readonly application: Application

VBA: Application

#
readonly parent: Workbook | Worksheet

VBA: Parent

excel.d.ras

Interface Excel.Windows

The collection of windows.

Microsoft reference

#
(index: any): Window

Returns a window by index or caption (default member).

Microsoft reference

#
item(index: any): Window

Returns a window by index or caption.

Microsoft reference

VBA: Item

#
readonly count: int

The number of windows.

Microsoft reference

VBA: Count

#
arrange(arrangeStyle?: XlArrangeStyle, activeWorkbook?: any, syncHorizontal?: any, syncVertical?: any): void

Arranges the windows.

Microsoft reference

VBA: Arrange

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Window

Represents a window that shows a workbook.

Microsoft reference

#
activate(): void

Activates the window.

Microsoft reference

VBA: Activate

#
close(saveChanges?: any, filename?: any, routeWorkbook?: any): boolean

Closes the window.

Microsoft reference

VBA: Close

#
caption: any

The title of the window.

Microsoft reference

VBA: Caption

#
windowState: XlWindowState

The state of the window (maximized / minimized / normal).

Microsoft reference

VBA: WindowState

#
visible: boolean

Whether the window is visible.

Microsoft reference

VBA: Visible

#
freezePanes: boolean

Whether panes are frozen.

Microsoft reference

VBA: FreezePanes

#
zoom: any

The zoom (percent).

Microsoft reference

VBA: Zoom

#
displayGridlines: boolean

Whether gridlines are shown.

Microsoft reference

VBA: DisplayGridlines

#
displayHeadings: boolean

Whether row and column headings are shown.

Microsoft reference

VBA: DisplayHeadings

#
displayFormulas: boolean

Whether formulas are shown instead of values.

Microsoft reference

VBA: DisplayFormulas

#
displayZeros: boolean

Whether zero values are shown.

Microsoft reference

VBA: DisplayZeros

#
scrollRow: int

The number of the row shown at the top of the window.

Microsoft reference

VBA: ScrollRow

#
scrollColumn: int

The number of the column shown at the left of the window.

Microsoft reference

VBA: ScrollColumn

#
readonly visibleRange: Range

The cell range visible in the window.

Microsoft reference

VBA: VisibleRange

#
readonly activeCell: Range

The active cell in the window.

Microsoft reference

VBA: ActiveCell

#
readonly activeSheet: Worksheet | Chart

The active sheet in the window.

Microsoft reference

VBA: ActiveSheet

#
readonly selectedSheets: Sheets

The sheets selected in the window.

Microsoft reference

VBA: SelectedSheets

#
readonly selection: object

The object selected in the window.

Microsoft reference

VBA: Selection

#
view: XlWindowView

The view mode (normal / page break preview / page layout).

Microsoft reference

VBA: View

#
readonly rangeSelection: Range

VBA: RangeSelection

#
readonly activeChart: Chart

VBA: ActiveChart

#
readonly index: int

VBA: Index

#
readonly windowNumber: int

VBA: WindowNumber

#
readonly type: XlWindowType

VBA: Type

#
readonly hwnd: int

VBA: Hwnd

#
width: double

VBA: Width

#
height: double

VBA: Height

#
left: double

VBA: Left

#
top: double

VBA: Top

#
readonly usableWidth: double

VBA: UsableWidth

#
readonly usableHeight: double

VBA: UsableHeight

#
split: boolean

VBA: Split

#
splitRow: int

VBA: SplitRow

#
splitColumn: int

VBA: SplitColumn

#
splitHorizontal: double

VBA: SplitHorizontal

#
splitVertical: double

VBA: SplitVertical

#
tabRatio: double

VBA: TabRatio

#
gridlineColor: int

VBA: GridlineColor

#
gridlineColorIndex: XlColorIndex

VBA: GridlineColorIndex

#
displayHorizontalScrollBar: boolean

VBA: DisplayHorizontalScrollBar

#
displayVerticalScrollBar: boolean

VBA: DisplayVerticalScrollBar

#
displayWorkbookTabs: boolean

VBA: DisplayWorkbookTabs

#
displayOutline: boolean

VBA: DisplayOutline

#
enableResize: boolean

VBA: EnableResize

#
activateNext(): void

VBA: ActivateNext

#
activatePrevious(): void

VBA: ActivatePrevious

#
newWindow(): Window

VBA: NewWindow

#
largeScroll(down?: any, up?: any, toRight?: any, toLeft?: any): void

VBA: LargeScroll

#
smallScroll(down?: any, up?: any, toRight?: any, toLeft?: any): void

VBA: SmallScroll

#
scrollIntoView(left: int, top: int, width: int, height: int, start?: any): void

VBA: ScrollIntoView

#
pointsToScreenPixelsX(points: int): int

VBA: PointsToScreenPixelsX

#
pointsToScreenPixelsY(points: int): int

VBA: PointsToScreenPixelsY

#
rangeFromPoint(x: int, y: int): Range | Shape

The shape or cell range at the given screen coordinates. Nothing if there is neither.

Microsoft reference

VBA: RangeFromPoint

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.ListObjects

The collection of tables on a worksheet.

Microsoft reference

#
(index: any): ListObject

Returns a table by index or table name (default member).

Microsoft reference

#
item(index: any): ListObject

Returns a table by index or table name.

Microsoft reference

VBA: Item

#
readonly count: int

The number of tables.

Microsoft reference

VBA: Count

#
add(sourceType?: XlListObjectSourceType, source?: any, linkSource?: any, xlListObjectHasHeaders?: XlYesNoGuess, destination?: any, tableStyleName?: any): ListObject

Creates a table from a cell range or other source.

Microsoft reference

VBA: Add

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.ListObject

Represents a table on a worksheet.

Microsoft reference

#
name: string

The table name.

Microsoft reference

VBA: Name

#
readonly range: Range

The range of the whole table, including the header row and totals row.

Microsoft reference

VBA: Range

#
readonly dataBodyRange: Range

The range of the data part. Nothing if there are no data rows.

Microsoft reference

VBA: DataBodyRange

#
readonly headerRowRange: Range

The range of the header row.

Microsoft reference

VBA: HeaderRowRange

#
readonly totalsRowRange: Range

The range of the totals row. Nothing if the totals row is hidden.

Microsoft reference

VBA: TotalsRowRange

#
readonly listColumns: ListColumns

The collection of the table's columns.

Microsoft reference

VBA: ListColumns

#
readonly listRows: ListRows

The collection of the table's rows.

Microsoft reference

VBA: ListRows

#
showHeaders: boolean

Whether the header row is shown.

Microsoft reference

VBA: ShowHeaders

#
showTotals: boolean

Whether the totals row is shown.

Microsoft reference

VBA: ShowTotals

#
showAutoFilter: boolean

Whether the AutoFilter is shown.

Microsoft reference

VBA: ShowAutoFilter

#
tableStyle: any

The style applied to the table.

Microsoft reference

VBA: TableStyle

#
readonly autoFilter: AutoFilter

The AutoFilter of the table.

Microsoft reference

VBA: AutoFilter

#
readonly sort: Sort

The sort settings of the table.

Microsoft reference

VBA: Sort

#
resize(range: Range): void

Changes the range of the table.

Microsoft reference

VBA: Resize

#
unlist(): void

Converts the table back to a normal cell range (the data remains).

Microsoft reference

VBA: Unlist

#
delete(): void

Deletes the table together with its data.

Microsoft reference

VBA: Delete

#
refresh(): void

Refreshes the table from the external data source.

Microsoft reference

VBA: Refresh

#
displayName: string

VBA: DisplayName

#
comment: string

VBA: Comment

#
readonly active: boolean

VBA: Active

#
readonly sourceType: XlListObjectSourceType

VBA: SourceType

#
readonly insertRowRange: Range

VBA: InsertRowRange

#
readonly queryTable: object

VBA: QueryTable

#
showAutoFilterDropDown: boolean

VBA: ShowAutoFilterDropDown

#
showTableStyleFirstColumn: boolean

VBA: ShowTableStyleFirstColumn

#
showTableStyleLastColumn: boolean

VBA: ShowTableStyleLastColumn

#
showTableStyleRowStripes: boolean

VBA: ShowTableStyleRowStripes

#
showTableStyleColumnStripes: boolean

VBA: ShowTableStyleColumnStripes

VBA: Unlink

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.ListColumns

The collection of the table's columns.

Microsoft reference

#
(index: any): ListColumn

Returns a column by index or column header (default member).

Microsoft reference

#
item(index: any): ListColumn

Returns a column by index or column header.

Microsoft reference

VBA: Item

#
readonly count: int

The number of columns.

Microsoft reference

VBA: Count

#
add(position?: any): ListColumn

Adds a column to the table.

Microsoft reference

VBA: Add

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.ListColumn

Represents one column of a table.

Microsoft reference

#
name: string

The text of the column header.

Microsoft reference

VBA: Name

#
readonly index: int

The position of the column in the table (1-based).

Microsoft reference

VBA: Index

#
readonly range: Range

The range of the whole column, including the header.

Microsoft reference

VBA: Range

#
readonly dataBodyRange: Range

The range of the data part of the column.

Microsoft reference

VBA: DataBodyRange

#
readonly total: Range

The cell in the totals row.

Microsoft reference

VBA: Total

#
totalsCalculation: XlTotalsCalculation

The calculation used in the totals row.

Microsoft reference

VBA: TotalsCalculation

#
delete(): void

Deletes the column.

Microsoft reference

VBA: Delete

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.ListRows

The collection of the table's rows.

Microsoft reference

#
(index: any): ListRow

Returns a row by index (default member).

Microsoft reference

#
item(index: any): ListRow

Returns a row by index.

Microsoft reference

VBA: Item

#
readonly count: int

The number of data rows.

Microsoft reference

VBA: Count

#
add(position?: any, alwaysInsert?: any): ListRow

Adds a row to the table. Without a position, adds it at the end.

Microsoft reference

VBA: Add

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.ListRow

Represents one row of a table.

Microsoft reference

#
readonly index: int

The position of the row in the table (1-based).

Microsoft reference

VBA: Index

#
readonly range: Range

The range of the row.

Microsoft reference

VBA: Range

#
delete(): void

Deletes the row.

Microsoft reference

VBA: Delete

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Shapes

The collection of shapes on a sheet.

Microsoft reference

#
(index: any): Shape

Returns a shape by index or name (default member).

Microsoft reference

#
item(index: any): Shape

Returns a shape by index or name.

Microsoft reference

VBA: Item

#
readonly count: int

The number of shapes.

Microsoft reference

VBA: Count

#
addShape(type: Office.MsoAutoShapeType, left: float, top: float, width: float, height: float): Shape

Adds an AutoShape.

Microsoft reference

VBA: AddShape

#
addPicture(filename: string, linkToFile: Office.MsoTriState, saveWithDocument: Office.MsoTriState, left: float, top: float, width: float, height: float): Shape

Adds a picture from an image file.

Microsoft reference

VBA: AddPicture

#
addTextbox(orientation: Office.MsoTextOrientation, left: float, top: float, width: float, height: float): Shape

Adds a text box.

Microsoft reference

VBA: AddTextbox

#
addLine(beginX: float, beginY: float, endX: float, endY: float): Shape

Adds a line.

Microsoft reference

VBA: AddLine

#
addChart2(style?: any, xlChartType?: any, left?: any, top?: any, width?: any, height?: any, newLayout?: any): Shape

Adds a chart.

Microsoft reference

VBA: AddChart2

#
addFormControl(type: XlFormControl, left: int, top: int, width: int, height: int): Shape

Adds a form control (such as a button).

Microsoft reference

VBA: AddFormControl

#
selectAll(): void

Selects all shapes.

Microsoft reference

VBA: SelectAll

#
range(index: any): object

Returns a ShapeRange that groups several shapes.

Microsoft reference

VBA: Range

#
readonly application: Application

VBA: Application

#
readonly parent: Worksheet | Chart

VBA: Parent

excel.d.ras

Interface Excel.Shape

Represents a shape on a sheet (AutoShape, picture, chart, and so on).

Microsoft reference

#
name: string

The name of the shape.

Microsoft reference

VBA: Name

#
left: float

The position of the left edge (points).

Microsoft reference

VBA: Left

#
top: float

The position of the top edge (points).

Microsoft reference

VBA: Top

#
width: float

The width (points).

Microsoft reference

VBA: Width

#
height: float

The height (points).

Microsoft reference

VBA: Height

#
visible: Office.MsoTriState

Whether the shape is visible.

Microsoft reference

VBA: Visible

#
readonly type: Office.MsoShapeType

The type of the shape.

Microsoft reference

VBA: Type

#
readonly topLeftCell: Range

The cell under the top-left corner of the shape.

Microsoft reference

VBA: TopLeftCell

#
readonly bottomRightCell: Range

The cell under the bottom-right corner of the shape.

Microsoft reference

VBA: BottomRightCell

#
placement: XlPlacement

How the shape follows when cells are moved or resized.

Microsoft reference

VBA: Placement

#
onAction: string

The name of the macro run when the shape is clicked.

Microsoft reference

VBA: OnAction

#
readonly textFrame: object

The text frame in the shape.

Microsoft reference

VBA: TextFrame

#
readonly chart: Chart

The chart contained in the shape.

Microsoft reference

VBA: Chart

#
delete(): void

Deletes the shape.

Microsoft reference

VBA: Delete

#
select(replace?: any): void

Selects the shape.

Microsoft reference

VBA: Select

#
copy(): void

Copies the shape to the clipboard.

Microsoft reference

VBA: Copy

#
duplicate(): Shape

Duplicates the shape.

Microsoft reference

VBA: Duplicate

#
rotation: float

VBA: Rotation

#
autoShapeType: Office.MsoAutoShapeType

VBA: AutoShapeType

#
alternativeText: string

VBA: AlternativeText

#
title: string

VBA: Title

#
locked: boolean

VBA: Locked

#
lockAspectRatio: Office.MsoTriState

VBA: LockAspectRatio

#
readonly hasChart: Office.MsoTriState

VBA: HasChart

#
readonly zOrderPosition: int

VBA: ZOrderPosition

#
readonly id: int

VBA: ID

#
readonly textFrame2: object

VBA: TextFrame2

#
readonly fill: object

VBA: Fill

#
readonly line: object

VBA: Line

VBA: Hyperlink

#
readonly controlFormat: object

VBA: ControlFormat

#
readonly oleFormat: object

VBA: OLEFormat

#
readonly groupItems: object

VBA: GroupItems

#
cut(): void

VBA: Cut

#
copyPicture(appearance?: any, format?: any): void

VBA: CopyPicture

#
scaleWidth(factor: float, relativeToOriginalSize: Office.MsoTriState, scale?: any): void

VBA: ScaleWidth

#
scaleHeight(factor: float, relativeToOriginalSize: Office.MsoTriState, scale?: any): void

VBA: ScaleHeight

#
incrementLeft(increment: float): void

VBA: IncrementLeft

#
incrementTop(increment: float): void

VBA: IncrementTop

#
incrementRotation(increment: float): void

VBA: IncrementRotation

#
zOrder(zOrderCmd: Office.MsoZOrderCmd): void

VBA: ZOrder

#
ungroup(): object

VBA: Ungroup

#
readonly application: Application

VBA: Application

#
readonly parent: Worksheet | Chart

VBA: Parent

excel.d.ras

Interface Excel.ChartObjects

The collection of embedded charts on a sheet.

Microsoft reference

#
(index: any): object

Returns an embedded chart by index or name (default member). The return value is of type Object.

Microsoft reference

#
item(index: any): object

Returns an embedded chart by index or name.

Microsoft reference

VBA: Item

#
readonly count: int

The number of embedded charts.

Microsoft reference

VBA: Count

#
add(left: double, top: double, width: double, height: double): ChartObject

Adds an embedded chart at the given position and size (points).

Microsoft reference

VBA: Add

#
delete(): void

Deletes all embedded charts in the collection.

Microsoft reference

VBA: Delete

#
select(replace?: any): void

VBA: Select

#
readonly application: Application

VBA: Application

#
readonly parent: Worksheet | Chart

VBA: Parent

excel.d.ras

Interface Excel.ChartObject

Represents the container of a chart embedded in a sheet.

Microsoft reference

#
name: string

The name of the embedded chart.

Microsoft reference

VBA: Name

#
readonly chart: Chart

The chart inside it.

Microsoft reference

VBA: Chart

#
left: double

The position of the left edge (points).

Microsoft reference

VBA: Left

#
top: double

The position of the top edge (points).

Microsoft reference

VBA: Top

#
width: double

The width (points).

Microsoft reference

VBA: Width

#
height: double

The height (points).

Microsoft reference

VBA: Height

#
visible: boolean

Whether it is visible.

Microsoft reference

VBA: Visible

#
activate(): void

Activates the embedded chart.

Microsoft reference

VBA: Activate

#
delete(): void

Deletes the embedded chart.

Microsoft reference

VBA: Delete

#
select(replace?: any): void

Selects the embedded chart.

Microsoft reference

VBA: Select

#
readonly topLeftCell: Range

VBA: TopLeftCell

#
readonly bottomRightCell: Range

VBA: BottomRightCell

#
readonly index: int

VBA: Index

#
readonly zOrder: int

VBA: ZOrder

#
placement: any

VBA: Placement

#
locked: boolean

VBA: Locked

#
printObject: boolean

VBA: PrintObject

#
roundedCorners: boolean

VBA: RoundedCorners

#
shadow: boolean

VBA: Shadow

#
protectChartObject: boolean

VBA: ProtectChartObject

#
readonly shapeRange: object

VBA: ShapeRange

#
copy(): void

VBA: Copy

#
cut(): void

VBA: Cut

#
copyPicture(appearance?: XlPictureAppearance, format?: XlCopyPictureFormat): void

VBA: CopyPicture

#
duplicate(): object

VBA: Duplicate

#
bringToFront(): void

VBA: BringToFront

#
sendToBack(): void

VBA: SendToBack

#
readonly application: Application

VBA: Application

#
readonly parent: Worksheet | Chart

VBA: Parent

excel.d.ras

Interface Excel.Chart

Represents a chart (a chart sheet or the contents of an embedded chart).

Microsoft reference

#
chartType: XlChartType

The chart type.

Microsoft reference

VBA: ChartType

#
setSourceData(source: Range, plotBy?: any): void

Sets the source data range of the chart.

Microsoft reference

VBA: SetSourceData

#
hasTitle: boolean

Whether the chart title is shown.

Microsoft reference

VBA: HasTitle

#
readonly chartTitle: object

The chart title.

Microsoft reference

VBA: ChartTitle

#
hasLegend: boolean

Whether the legend is shown.

Microsoft reference

VBA: HasLegend

#
readonly legend: object

The legend.

Microsoft reference

VBA: Legend

#
seriesCollection(index?: any): object

Returns one data series, or the whole collection.

Microsoft reference

VBA: SeriesCollection

#
axes(type?: any, axisGroup?: XlAxisGroup): object

Returns one axis, or the whole collection.

Microsoft reference

VBA: Axes

#
export(filename: string, filterName?: any, interactive?: any): boolean

Exports the chart as an image file.

Microsoft reference

VBA: Export

#
delete(): void

Deletes the chart.

Microsoft reference

VBA: Delete

#
name: string

The name of the chart.

Microsoft reference

VBA: Name

#
plotBy: XlRowCol

Whether series are taken from rows or columns.

Microsoft reference

VBA: PlotBy

#
chartStyle: any

VBA: ChartStyle

#
displayBlanksAs: XlDisplayBlanksAs

VBA: DisplayBlanksAs

#
plotVisibleOnly: boolean

VBA: PlotVisibleOnly

#
hasDataTable: boolean

VBA: HasDataTable

#
visible: XlSheetVisibility

VBA: Visible

#
readonly chartArea: object

VBA: ChartArea

#
readonly plotArea: object

VBA: PlotArea

#
readonly dataTable: object

VBA: DataTable

#
readonly index: int

VBA: Index

#
readonly codeName: string

VBA: CodeName

#
readonly pageSetup: PageSetup

VBA: PageSetup

#
readonly shapes: Shapes

VBA: Shapes

#
readonly protectContents: boolean

VBA: ProtectContents

#
activate(): void

VBA: Activate

#
select(replace?: any): void

VBA: Select

#
copy(before?: any, after?: any): void

VBA: Copy

#
move(before?: any, after?: any): void

VBA: Move

#
copyPicture(appearance?: XlPictureAppearance, format?: XlCopyPictureFormat, size?: XlPictureAppearance): void

VBA: CopyPicture

#
paste(type?: any): void

VBA: Paste

#
refresh(): void

VBA: Refresh

#
location(where: XlChartLocation, name?: any): Chart

VBA: Location

#
applyLayout(layout: int, chartType?: any): void

VBA: ApplyLayout

#
applyChartTemplate(filename: string): void

VBA: ApplyChartTemplate

#
saveChartTemplate(filename: string): void

VBA: SaveChartTemplate

#
clearToMatchStyle(): void

VBA: ClearToMatchStyle

#
chartObjects(index?: any): object

VBA: ChartObjects

#
chartGroups(index?: any): object

VBA: ChartGroups

#
fullSeriesCollection(index?: any): object

VBA: FullSeriesCollection

#
evaluate(name: any): any

VBA: Evaluate

#
protect(password?: any, drawingObjects?: any, contents?: any, scenarios?: any, userInterfaceOnly?: any): void

VBA: Protect

#
unprotect(password?: any): void

VBA: Unprotect

#
printOut(from?: any, to?: any, copies?: any, preview?: any, activePrinter?: any, printToFile?: any, collate?: any, prToFileName?: any, ignorePrintAreas?: any): void

VBA: PrintOut

#
printPreview(enableChanges?: any): void

VBA: PrintPreview

#
exportAsFixedFormat(type: XlFixedFormatType, filename?: any, quality?: any, includeDocProperties?: any, ignorePrintAreas?: any, from?: any, to?: any, openAfterPublish?: any, fixedFormatExtClassPtr?: any): void

VBA: ExportAsFixedFormat

#
readonly application: Application

VBA: Application

#
readonly parent: Workbook | ChartObject

VBA: Parent

excel.d.ras

Interface Excel.PageSetup

Represents the page setup for printing.

Microsoft reference

#
orientation: XlPageOrientation

The paper orientation.

Microsoft reference

VBA: Orientation

#
paperSize: XlPaperSize

The paper size.

Microsoft reference

VBA: PaperSize

#
printArea: string

The print area (a string in A1 style). An empty string for the whole sheet.

Microsoft reference

VBA: PrintArea

#
printTitleRows: string

The rows printed repeatedly at the top of each page.

Microsoft reference

VBA: PrintTitleRows

#
printTitleColumns: string

The columns printed repeatedly at the left of each page.

Microsoft reference

VBA: PrintTitleColumns

#
zoom: any

The scaling (percent). Setting it to false makes the FitToPages settings take effect.

Microsoft reference

VBA: Zoom

#
fitToPagesWide: any

The number of pages to fit horizontally.

Microsoft reference

VBA: FitToPagesWide

#
fitToPagesTall: any

The number of pages to fit vertically.

Microsoft reference

VBA: FitToPagesTall

#
leftMargin: double

The left margin (points).

Microsoft reference

VBA: LeftMargin

#
rightMargin: double

The right margin (points).

Microsoft reference

VBA: RightMargin

#
topMargin: double

The top margin (points).

Microsoft reference

VBA: TopMargin

#
bottomMargin: double

The bottom margin (points).

Microsoft reference

VBA: BottomMargin

#
centerHorizontally: boolean

Whether the sheet is centered horizontally on the page.

Microsoft reference

VBA: CenterHorizontally

#
centerVertically: boolean

Whether the sheet is centered vertically on the page.

Microsoft reference

VBA: CenterVertically

#
centerHeader: string

The text of the center section of the header.

Microsoft reference

VBA: CenterHeader

#
centerFooter: string

The text of the center section of the footer.

Microsoft reference

VBA: CenterFooter

#
headerMargin: double

VBA: HeaderMargin

#
footerMargin: double

VBA: FooterMargin

#
leftHeader: string

VBA: LeftHeader

#
rightHeader: string

VBA: RightHeader

#
leftFooter: string

VBA: LeftFooter

#
rightFooter: string

VBA: RightFooter

#
printGridlines: boolean

VBA: PrintGridlines

#
printHeadings: boolean

VBA: PrintHeadings

#
blackAndWhite: boolean

VBA: BlackAndWhite

#
draft: boolean

VBA: Draft

#
order: XlOrder

VBA: Order

#
firstPageNumber: int

VBA: FirstPageNumber

#
printComments: XlPrintLocation

VBA: PrintComments

#
printErrors: XlPrintErrors

VBA: PrintErrors

#
oddAndEvenPagesHeaderFooter: boolean

VBA: OddAndEvenPagesHeaderFooter

#
differentFirstPageHeaderFooter: boolean

VBA: DifferentFirstPageHeaderFooter

#
scaleWithDocHeaderFooter: boolean

VBA: ScaleWithDocHeaderFooter

#
alignMarginsHeaderFooter: boolean

VBA: AlignMarginsHeaderFooter

#
printQuality(index?: any): any

VBA: PrintQuality

#
readonly application: Application

VBA: Application

#
readonly parent: Worksheet | Chart

VBA: Parent

excel.d.ras

Interface Excel.AutoFilter

Represents the AutoFilter of a worksheet or table.

Microsoft reference

#
readonly range: Range

The range the filter is applied to.

Microsoft reference

VBA: Range

#
readonly filters: object

The collection of filter criteria for each column.

Microsoft reference

VBA: Filters

#
readonly filterMode: boolean

Whether it is in a filtered state.

Microsoft reference

VBA: FilterMode

#
readonly sort: Sort

The sort settings of the filter range.

Microsoft reference

VBA: Sort

#
applyFilter(): void

Reapplies the filter with the current criteria.

Microsoft reference

VBA: ApplyFilter

#
showAllData(): void

Clears the filtering and shows all rows.

Microsoft reference

VBA: ShowAllData

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.Sort

Represents the sort settings of a sheet, table or AutoFilter.

Microsoft reference

#
readonly sortFields: SortFields

The collection of sort keys.

Microsoft reference

VBA: SortFields

#
setRange(rng: Range): void

Sets the range to sort.

Microsoft reference

VBA: SetRange

#
header: XlYesNoGuess

Whether the first row is treated as a header.

Microsoft reference

VBA: Header

#
matchCase: boolean

Whether the sort is case-sensitive.

Microsoft reference

VBA: MatchCase

#
orientation: XlSortOrientation

The sort orientation (by rows / by columns).

Microsoft reference

VBA: Orientation

#
apply(): void

Sorts with the configured settings.

Microsoft reference

VBA: Apply

#
sortMethod: XlSortMethod

VBA: SortMethod

#
readonly rng: Range

VBA: Rng

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.SortFields

The collection of sort keys.

Microsoft reference

#
(index: any): SortField

Returns a sort key by index (default member).

Microsoft reference

#
item(index: any): SortField

Returns a sort key by index.

Microsoft reference

VBA: Item

#
readonly count: int

The number of sort keys.

Microsoft reference

VBA: Count

#
add(key: Range, sortOn?: any, order?: any, customOrder?: any, dataOption?: any): SortField

Adds a sort key.

Microsoft reference

VBA: Add

#
clear(): void

Deletes all sort keys.

Microsoft reference

VBA: Clear

#
add2(key: Range, sortOn?: any, order?: any, customOrder?: any, dataOption?: any, subField?: any): SortField

VBA: Add2

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.SortField

Represents the settings of a single sort key.

Microsoft reference

#
readonly key: Range

The cell range used as the key.

Microsoft reference

VBA: Key

#
sortOn: XlSortOn

What to sort on (values / cell color / font color / icon).

Microsoft reference

VBA: SortOn

#
order: XlSortOrder

The sort order.

Microsoft reference

VBA: Order

#
customOrder: any

The order given by a custom list.

Microsoft reference

VBA: CustomOrder

#
dataOption: XlSortDataOption

How text that looks like numbers is treated.

Microsoft reference

VBA: DataOption

#
priority: int

VBA: Priority

#
readonly sortOnValue: object

VBA: SortOnValue

#
delete(): void

VBA: Delete

#
modifyKey(key: Range): void

VBA: ModifyKey

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.FormatConditions

The collection of conditional formats of a cell range (each element is of type Object).

Microsoft reference

#
(index: any): object

Returns a conditional format by index (default member).

Microsoft reference

#
item(index: any): object

Returns a conditional format by index.

Microsoft reference

VBA: Item

#
readonly count: int

The number of conditional formats.

Microsoft reference

VBA: Count

#
add(type: XlFormatConditionType, operator?: any, formula1?: any, formula2?: any): object

Adds a conditional format.

Microsoft reference

VBA: Add

#
delete(): void

Deletes all conditional formats of the range.

Microsoft reference

VBA: Delete

#
addColorScale(colorScaleType: int): object

VBA: AddColorScale

#
addDatabar(): object

VBA: AddDatabar

#
addIconSetCondition(): object

VBA: AddIconSetCondition

#
addTop10(): object

VBA: AddTop10

#
addAboveAverage(): object

VBA: AddAboveAverage

#
addUniqueValues(): object

VBA: AddUniqueValues

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Interface Excel.WorksheetFunction

A container for worksheet functions callable from VBA. Raises a run-time error on failure.

Microsoft reference

#
sum(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the sum.

Microsoft reference

VBA: Sum

#
average(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the average.

Microsoft reference

VBA: Average

#
count(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the number of cells that contain numbers.

Microsoft reference

VBA: Count

#
countA(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the number of non-blank cells.

Microsoft reference

VBA: CountA

#
countIf(arg1: Range, arg2: any): double

Returns the number of cells that match the criteria.

Microsoft reference

VBA: CountIf

#
countIfs(arg1: Range, arg2: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the number of cells that match all of several criteria.

Microsoft reference

VBA: CountIfs

#
sumIf(arg1: Range, arg2: any, arg3?: any): double

Returns the sum of the cells that match the criteria.

Microsoft reference

VBA: SumIf

#
sumIfs(arg1: Range, arg2: Range, arg3: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the sum of the cells that match all of several criteria.

Microsoft reference

VBA: SumIfs

#
max(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the maximum value.

Microsoft reference

VBA: Max

#
min(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the minimum value.

Microsoft reference

VBA: Min

#
match(arg1: any, arg2: any, arg3?: any): double

Returns the position of the lookup value within the range. Raises a run-time error when not found.

Microsoft reference

VBA: Match

#
index(arg1: any, arg2: double, arg3?: any, arg4?: any): any

Returns the element of a range or array at the given row and column numbers.

Microsoft reference

VBA: Index

#
vLookup(arg1: any, arg2: any, arg3: any, arg4?: any): any

Searches down the leftmost column of a range and returns the value in the given column of the same row.

Microsoft reference

VBA: VLookup

#
hLookup(arg1: any, arg2: any, arg3: any, arg4?: any): any

Searches across the top row of a range and returns the value in the given row of the same column.

Microsoft reference

VBA: HLookup

#
xLookup(arg1: any, arg2: any, arg3: any, arg4?: any, arg5?: any, arg6?: any): any

Looks up a value in a lookup range and returns the value from the corresponding return range (newer Excel only).

Microsoft reference

VBA: XLookup

#
round(arg1: double, arg2: double): double

Rounds to the given number of digits.

Microsoft reference

VBA: Round

#
roundUp(arg1: double, arg2: double): double

Rounds up to the given number of digits (away from 0).

Microsoft reference

VBA: RoundUp

#
roundDown(arg1: double, arg2: double): double

Rounds down to the given number of digits (toward 0).

Microsoft reference

VBA: RoundDown

#
trim(arg1: string): string

Removes leading and trailing spaces and collapses runs of spaces between words into one.

Microsoft reference

VBA: Trim

#
text(arg1: any, arg2: string): string

Converts a value to text according to a number format.

Microsoft reference

VBA: Text

#
transpose(arg1: any): any

Swaps the rows and columns of an array.

Microsoft reference

VBA: Transpose

#
ifError(arg1: cellValue, arg2: any): any

Returns the second argument if the first is an error value; otherwise returns the first argument.

Microsoft reference

VBA: IfError

#
large(arg1: any, arg2: double): double

Returns the k-th largest value.

Microsoft reference

VBA: Large

#
small(arg1: any, arg2: double): double

Returns the k-th smallest value.

Microsoft reference

VBA: Small

#
median(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the median.

Microsoft reference

VBA: Median

#
stDev(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the standard deviation based on a sample.

Microsoft reference

VBA: StDev

#
var(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the variance based on a sample.

Microsoft reference

VBA: Var

#
rank(arg1: double, arg2: Range, arg3?: any): double

Returns the rank of a number within a range.

Microsoft reference

VBA: Rank

#
floor(arg1: double, arg2: double): double

Returns the value rounded toward 0 to a multiple of the significance.

Microsoft reference

VBA: Floor

#
ceiling(arg1: double, arg2: double): double

Returns the value rounded away from 0 to a multiple of the significance.

Microsoft reference

VBA: Ceiling

#
power(arg1: double, arg2: double): double

Returns the power.

Microsoft reference

VBA: Power

#
product(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Returns the product.

Microsoft reference

VBA: Product

#
sumProduct(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

Multiplies the corresponding elements of the arrays and returns the sum of the products.

Microsoft reference

VBA: SumProduct

#
eoMonth(arg1: any, arg2: any): double

Returns the last day of the month the given number of months before or after the start date (a serial value).

Microsoft reference

VBA: EoMonth

#
eDate(arg1: any, arg2: any): double

Returns the date the given number of months before or after the start date (a serial value).

Microsoft reference

VBA: EDate

#
networkDays(arg1: any, arg2: any, arg3?: any): double

Returns the number of working days between two dates.

Microsoft reference

VBA: NetworkDays

#
workDay(arg1: any, arg2: any, arg3?: any): double

Returns the date the given number of working days before or after the start date (a serial value).

Microsoft reference

VBA: WorkDay

#
weekNum(arg1: any, arg2?: any): double

Returns the week number of the date within its year.

Microsoft reference

VBA: WeekNum

#
find(arg1: string, arg2: string, arg3?: any): double

Returns the position where the search text first appears in the text (case-sensitive).

Microsoft reference

VBA: Find

#
search(arg1: string, arg2: string, arg3?: any): double

Returns the position where the search text first appears in the text (not case-sensitive; wildcards allowed).

Microsoft reference

VBA: Search

#
substitute(arg1: string, arg2: string, arg3: string, arg4?: any): string

Replaces the given substring in the text with another string.

Microsoft reference

VBA: Substitute

#
rept(arg1: string, arg2: double): string

Repeats the text the given number of times.

Microsoft reference

VBA: Rept

#
proper(arg1: string): string

Capitalizes the first letter of each word and lowercases the rest.

Microsoft reference

VBA: Proper

#
clean(arg1: string): string

Removes nonprintable control characters.

Microsoft reference

VBA: Clean

#
asc(arg1: string): string

Converts full-width alphanumeric and kana characters to half-width.

Microsoft reference

VBA: Asc

#
dbcs(arg1: string): string

Converts half-width alphanumeric and kana characters to full-width.

Microsoft reference

VBA: Dbcs

#
phonetic(arg1: Range): string

Returns the phonetic (furigana) text of the cell.

Microsoft reference

VBA: Phonetic

#
lookup(arg1: any, arg2: any, arg3?: any): any

Searches a row or column and returns the value at the same position in another row or column.

Microsoft reference

VBA: Lookup

#
choose(arg1: any, arg2: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): any

Returns the value from the argument list that corresponds to the index.

Microsoft reference

VBA: Choose

#
and(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): boolean

Returns true if all arguments are true.

Microsoft reference

VBA: And

#
or(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): boolean

Returns true if any argument is true.

Microsoft reference

VBA: Or

#
isNumber(arg1: cellValue): boolean

Returns whether the value is a number.

Microsoft reference

VBA: IsNumber

#
isText(arg1: cellValue): boolean

Returns whether the value is text.

Microsoft reference

VBA: IsText

#
isError(arg1: cellValue): boolean

Returns whether the value is an error value.

Microsoft reference

VBA: IsError

#
isNA(arg1: cellValue): boolean

Returns whether the value is #N/A.

Microsoft reference

VBA: IsNA

#
pi(): double

Returns pi.

Microsoft reference

VBA: Pi

#
radians(arg1: double): double

Converts degrees to radians.

Microsoft reference

VBA: Radians

#
degrees(arg1: double): double

Converts radians to degrees.

Microsoft reference

VBA: Degrees

#
ln(arg1: double): double

Returns the natural logarithm.

Microsoft reference

VBA: Ln

#
log(arg1: double, arg2?: any): double

Returns the logarithm to the given base (10 if the base is omitted).

Microsoft reference

VBA: Log

#
log10(arg1: double): double

Returns the base-10 logarithm.

Microsoft reference

VBA: Log10

#
fact(arg1: double): double

Returns the factorial.

Microsoft reference

VBA: Fact

#
combin(arg1: double, arg2: double): double

Returns the number of combinations.

Microsoft reference

VBA: Combin

#
quotient(arg1: any, arg2: any): double

Returns the integer part of a division.

Microsoft reference

VBA: Quotient

#
mRound(arg1: any, arg2: any): double

Rounds to a multiple of the given value.

Microsoft reference

VBA: MRound

#
xMatch(arg1: any, arg2: any, arg3?: any, arg4?: any): double

VBA: XMatch

#
countBlank(arg1: Range): double

VBA: CountBlank

#
averageIf(arg1: Range, arg2: any, arg3?: any): double

VBA: AverageIf

#
averageIfs(arg1: Range, arg2: Range, arg3: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: AverageIfs

#
ifNa(arg1: cellValue, arg2: any): any

VBA: IfNa

#
mode(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: Mode

#
stDevP(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: StDevP

#
varP(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: VarP

#
stDev_S(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: StDev_S

#
stDev_P(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: StDev_P

#
var_S(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: Var_S

#
var_P(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: Var_P

#
rank_Eq(arg1: double, arg2: Range, arg3?: any): double

VBA: Rank_Eq

#
percentile(arg1: any, arg2: double): double

VBA: Percentile

#
quartile(arg1: any, arg2: double): double

VBA: Quartile

#
subtotal(arg1: double, arg2: Range, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: Subtotal

#
sumSq(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): double

VBA: SumSq

#
even(arg1: double): double

VBA: Even

#
odd(arg1: double): double

VBA: Odd

#
randBetween(arg1: any, arg2: any): double

VBA: RandBetween

#
weekday(arg1: any, arg2?: any): double

VBA: Weekday

#
days360(arg1: any, arg2: any, arg3?: any): double

VBA: Days360

#
replace(arg1: string, arg2: double, arg3: double, arg4: string): string

VBA: Replace

#
fixed(arg1: double, arg2?: any, arg3?: any): string

VBA: Fixed

#
textJoin(arg1: any, arg2: any, arg3: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): string

VBA: TextJoin

#
concat(arg1: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): string

VBA: Concat

#
isNonText(arg1: cellValue): boolean

VBA: IsNonText

#
isErr(arg1: cellValue): boolean

VBA: IsErr

#
isLogical(arg1: cellValue): boolean

VBA: IsLogical

#
isEven(arg1: any): boolean

VBA: IsEven

#
isOdd(arg1: any): boolean

VBA: IsOdd

#
isFormula(arg1: Range): boolean

VBA: IsFormula

#
frequency(arg1: any, arg2: any): any

VBA: Frequency

#
mMult(arg1: any, arg2: any): any

VBA: MMult

#
mInverse(arg1: any): any

VBA: MInverse

#
unique(arg1: any, arg2?: any, arg3?: any): any

VBA: Unique

#
filter(arg1: any, arg2: any, arg3?: any): any

VBA: Filter

#
sort(arg1: any, arg2?: any, arg3?: any, arg4?: any): any

VBA: Sort

#
readonly application: Application

VBA: Application

#
readonly parent: object

VBA: Parent

excel.d.ras

Enum Excel.Constants

General-purpose constants that belong to no specific enumeration (xlNone / xlCenter / xlAutomatic and so on).

Microsoft reference

#
xl3DBar = -4099
#
xl3DEffects1 = 13
#
xl3DEffects2 = 14
#
xl3DSurface = -4103
#
xlAbove = 0
#
xlAccounting1 = 4
#
xlAccounting2 = 5
#
xlAccounting4 = 17
#
xlAdd = 2
#
xlAll = -4104
#
xlAccounting3 = 6
#
xlAllExceptBorders = 7
#
xlAutomatic = -4105
#
xlBar = 2
#
xlBelow = 1
#
xlBidi = -5000
#
xlBidiCalendar = 3
#
xlBoth = 1
#
xlBottom = -4107
#
xlCascade = 7
#
xlCenter = -4108
#
xlCenterAcrossSelection = 7
#
xlChart4 = 2
#
xlChartSeries = 17
#
xlChartShort = 6
#
xlChartTitles = 18
#
xlChecker = 9
#
xlCircle = 8
#
xlClassic1 = 1
#
xlClassic2 = 2
#
xlClassic3 = 3
#
xlClosed = 3
#
xlColor1 = 7
#
xlColor2 = 8
#
xlColor3 = 9
#
xlColumn = 3
#
xlCombination = -4111
#
xlComplete = 4
#
xlConstants = 2
#
xlContents = 2
#
xlContext = -5002
#
xlCorner = 2
#
xlCrissCross = 16
#
xlCross = 4
#
xlCustom = -4114
#
xlDebugCodePane = 13
#
xlDefaultAutoFormat = -1
#
xlDesktop = 9
#
xlDiamond = 2
#
xlDirect = 1
#
xlDistributed = -4117
#
xlDivide = 5
#
xlDoubleAccounting = 5
#
xlDoubleClosed = 5
#
xlDoubleOpen = 4
#
xlDoubleQuote = 1
#
xlDrawingObject = 14
#
xlEntireChart = 20
#
xlExcelMenus = 1
#
xlExtended = 3
#
xlFill = 5
#
xlFirst = 0
#
xlFixedValue = 1
#
xlFloating = 5
#
xlFormats = -4122
#
xlFormula = 5
#
xlFullScript = 1
#
xlGeneral = 1
#
xlGray16 = 17
#
xlGray25 = -4124
#
xlGray50 = -4125
#
xlGray75 = -4126
#
xlGray8 = 18
#
xlGregorian = 2
#
xlGrid = 15
#
xlGridline = 22
#
xlHigh = -4127
#
xlHindiNumerals = 3
#
xlIcons = 1
#
xlImmediatePane = 12
#
xlInside = 2
#
xlInteger = 2
#
xlJustify = -4130
#
xlLast = 1
#
xlLastCell = 11
#
xlLatin = -5001
#
xlLeft = -4131
#
xlLeftToRight = 2
#
xlLightDown = 13
#
xlLightHorizontal = 11
#
xlLightUp = 14
#
xlLightVertical = 12
#
xlList1 = 10
#
xlList2 = 11
#
xlList3 = 12
#
xlLocalFormat1 = 15
#
xlLocalFormat2 = 16
#
xlLogicalCursor = 1
#
xlLong = 3
#
xlLotusHelp = 2
#
xlLow = -4134
#
xlLTR = -5003
#
xlMacrosheetCell = 7
#
xlManual = -4135
#
xlMaximum = 2
#
xlMinimum = 4
#
xlMinusValues = 3
#
xlMixed = 2
#
xlMixedAuthorizedScript = 4
#
xlMixedScript = 3
#
xlModule = -4141
#
xlMultiply = 4
#
xlNarrow = 1
#
xlNextToAxis = 4
#
xlNoDocuments = 3
#
xlNone = -4142
#
xlNotes = -4144
#
xlOff = -4146
#
xlOn = 1
#
xlOpaque = 3
#
xlOpen = 2
#
xlOutside = 3
#
xlPartial = 3
#
xlPartialScript = 2
#
xlPercent = 2
#
xlPlus = 9
#
xlPlusValues = 2
#
xlReference = 4
#
xlRight = -4152
#
xlRTL = -5004
#
xlScale = 3
#
xlSemiautomatic = 2
#
xlSemiGray75 = 10
#
xlShort = 1
#
xlShowLabel = 4
#
xlShowLabelAndPercent = 5
#
xlShowPercent = 3
#
xlShowValue = 2
#
xlSimple = -4154
#
xlSingle = 2
#
xlSingleAccounting = 4
#
xlSingleQuote = 2
#
xlSolid = 1
#
xlSquare = 1
#
xlStar = 5
#
xlStError = 4
#
xlStrict = 2
#
xlSubtract = 3
#
xlSystem = 1
#
xlTextBox = 16
#
xlTiled = 1
#
xlTitleBar = 8
#
xlToolbar = 1
#
xlToolbarButton = 2
#
xlTop = -4160
#
xlTopToBottom = 1
#
xlTransparent = 2
#
xlTriangle = 3
#
xlVeryHidden = 2
#
xlVisible = 12
#
xlVisualCursor = 2
#
xlWatchPane = 11
#
xlWide = 3
#
xlWorkbookTab = 6
#
xlWorksheet4 = 1
#
xlWorksheetCell = 3
#
xlWorksheetShort = 5

excel.d.ras

Enum Excel.XlDirection

Specifies the direction of movement or search.

Microsoft reference

#
xlDown = -4121
#
xlToLeft = -4159
#
xlToRight = -4161
#
xlUp = -4162

excel.d.ras

Enum Excel.XlCalculation

Specifies the calculation mode.

Microsoft reference

#
xlCalculationAutomatic = -4105
#
xlCalculationManual = -4135
#
xlCalculationSemiautomatic = 2

excel.d.ras

Enum Excel.XlCalculationState

Represents the progress of the calculation.

Microsoft reference

#
xlCalculating = 1
#
xlDone = 0
#
xlPending = 2

excel.d.ras

Enum Excel.XlCalculationInterruptKey

Specifies the keys that can interrupt calculation.

Microsoft reference

#
xlAnyKey = 2
#
xlEscKey = 1
#
xlNoKey = 0

excel.d.ras

Enum Excel.XlLookAt

Specifies whether to match the whole cell contents or any part of them.

Microsoft reference

#
xlPart = 2
#
xlWhole = 1

excel.d.ras

Enum Excel.XlFindLookIn

Specifies what to search (formulas / values / comments).

Microsoft reference

#
xlComments = -4144
#
xlCommentsThreaded = -4184
#
xlFormulas = -4123
#
xlValues = -4163

excel.d.ras

Enum Excel.XlSearchOrder

Specifies whether the search proceeds by rows or by columns.

Microsoft reference

#
xlByColumns = 2
#
xlByRows = 1

excel.d.ras

Enum Excel.XlSearchDirection

Specifies whether to search for the next or the previous match.

Microsoft reference

#
xlNext = 1
#
xlPrevious = 2

excel.d.ras

Enum Excel.XlPasteType

Specifies what to paste with Paste Special.

Microsoft reference

#
xlPasteAll = -4104
#
xlPasteAllExceptBorders = 7
#
xlPasteAllMergingConditionalFormats = 14
#
xlPasteAllUsingSourceTheme = 13
#
xlPasteColumnWidths = 8
#
xlPasteComments = -4144
#
xlPasteFormats = -4122
#
xlPasteFormulas = -4123
#
xlPasteFormulasAndNumberFormats = 11
#
xlPasteValidation = 6
#
xlPasteValues = -4163
#
xlPasteValuesAndNumberFormats = 12

excel.d.ras

Enum Excel.XlPasteSpecialOperation

Specifies the operation performed with the destination values when pasting.

Microsoft reference

#
xlPasteSpecialOperationAdd = 2
#
xlPasteSpecialOperationDivide = 5
#
xlPasteSpecialOperationMultiply = 4
#
xlPasteSpecialOperationNone = -4142
#
xlPasteSpecialOperationSubtract = 3

excel.d.ras

Enum Excel.XlSheetVisibility

Specifies the visibility of a sheet.

Microsoft reference

#
xlSheetHidden = 0
#
xlSheetVeryHidden = 2
#
xlSheetVisible = -1

excel.d.ras

Enum Excel.XlSheetType

Specifies the type of a sheet.

Microsoft reference

#
xlChart = -4109
#
xlDialogSheet = -4116
#
xlExcel4IntlMacroSheet = 4
#
xlExcel4MacroSheet = 3
#
xlWorksheet = -4167

excel.d.ras

Enum Excel.XlFileFormat

Specifies the file format used when saving a workbook.

Microsoft reference

#
xlAddIn = 18
#
xlAddIn8 = 18
#
xlCSV = 6
#
xlCSVMac = 22
#
xlCSVMSDOS = 24
#
xlCSVUTF8 = 62
#
xlCSVWindows = 23
#
xlCurrentPlatformText = -4158
#
xlDBF2 = 7
#
xlDBF3 = 8
#
xlDBF4 = 11
#
xlDIF = 9
#
xlExcel12 = 50
#
xlExcel2 = 16
#
xlExcel2FarEast = 27
#
xlExcel3 = 29
#
xlExcel4 = 33
#
xlExcel4Workbook = 35
#
xlExcel5 = 39
#
xlExcel7 = 39
#
xlExcel8 = 56
#
xlExcel9795 = 43
#
xlHtml = 44
#
xlIntlAddIn = 26
#
xlIntlMacro = 25
#
xlOpenDocumentSpreadsheet = 60
#
xlOpenXMLAddIn = 55
#
xlOpenXMLTemplate = 54
#
xlOpenXMLTemplateMacroEnabled = 53
#
xlOpenXMLWorkbook = 51
#
xlOpenXMLWorkbookMacroEnabled = 52
#
xlSYLK = 2
#
xlTemplate = 17
#
xlTemplate8 = 17
#
xlTextMac = 19
#
xlTextMSDOS = 21
#
xlTextPrinter = 36
#
xlTextWindows = 20
#
xlUnicodeText = 42
#
xlWebArchive = 45
#
xlWJ2WD1 = 14
#
xlWJ3 = 40
#
xlWJ3FJ3 = 41
#
xlWK1 = 5
#
xlWK1ALL = 31
#
xlWK1FMT = 30
#
xlWK3 = 15
#
xlWK3FM3 = 32
#
xlWK4 = 38
#
xlWKS = 4
#
xlWorkbookDefault = 51
#
xlWorkbookNormal = -4143
#
xlWorks2FarEast = 28
#
xlWQ1 = 34
#
xlXMLSpreadsheet = 46

excel.d.ras

Enum Excel.XlCellType

Specifies the kind of cells returned by SpecialCells.

Microsoft reference

#
xlCellTypeAllFormatConditions = -4172
#
xlCellTypeAllValidation = -4174
#
xlCellTypeBlanks = 4
#
xlCellTypeComments = -4144
#
xlCellTypeConstants = 2
#
xlCellTypeFormulas = -4123
#
xlCellTypeLastCell = 11
#
xlCellTypeSameFormatConditions = -4173
#
xlCellTypeSameValidation = -4175
#
xlCellTypeVisible = 12

excel.d.ras

Enum Excel.XlSpecialCellsValue

Specifies the kinds of values when SpecialCells returns constant or formula cells (can be combined by adding).

Microsoft reference

#
xlErrors = 16
#
xlLogical = 4
#
xlNumbers = 1
#
xlTextValues = 2

excel.d.ras

Enum Excel.XlHAlign

Specifies the horizontal alignment.

Microsoft reference

#
xlHAlignCenter = -4108
#
xlHAlignCenterAcrossSelection = 7
#
xlHAlignDistributed = -4117
#
xlHAlignFill = 5
#
xlHAlignGeneral = 1
#
xlHAlignJustify = -4130
#
xlHAlignLeft = -4131
#
xlHAlignRight = -4152

excel.d.ras

Enum Excel.XlVAlign

Specifies the vertical alignment.

Microsoft reference

#
xlVAlignBottom = -4107
#
xlVAlignCenter = -4108
#
xlVAlignDistributed = -4117
#
xlVAlignJustify = -4130
#
xlVAlignTop = -4160

excel.d.ras

Enum Excel.XlBordersIndex

Specifies the position of a border.

Microsoft reference

#
xlDiagonalDown = 5
#
xlDiagonalUp = 6
#
xlEdgeBottom = 9
#
xlEdgeLeft = 7
#
xlEdgeRight = 10
#
xlEdgeTop = 8
#
xlInsideHorizontal = 12
#
xlInsideVertical = 11

excel.d.ras

Enum Excel.XlLineStyle

Specifies the line style of a border.

Microsoft reference

#
xlContinuous = 1
#
xlDash = -4115
#
xlDashDot = 4
#
xlDashDotDot = 5
#
xlDot = -4118
#
xlDouble = -4119
#
xlLineStyleNone = -4142
#
xlSlantDashDot = 13

excel.d.ras

Enum Excel.XlBorderWeight

Specifies the weight of a border.

Microsoft reference

#
xlHairline = 1
#
xlMedium = -4138
#
xlThick = 4
#
xlThin = 2

excel.d.ras

Enum Excel.XlSortOrder

Specifies the sort order (ascending / descending).

Microsoft reference

#
xlAscending = 1
#
xlDescending = 2

excel.d.ras

Enum Excel.XlSortOn

Specifies what to sort on.

Microsoft reference

#
xlSortOnCellColor = 1
#
xlSortOnFontColor = 2
#
xlSortOnIcon = 3
#
xlSortOnValues = 0

excel.d.ras

Enum Excel.XlSortOrientation

Specifies the sort orientation.

Microsoft reference

#
xlSortColumns = 1
#
xlSortRows = 2

excel.d.ras

Enum Excel.XlSortMethod

Specifies how Japanese or Chinese text is sorted.

Microsoft reference

#
xlPinYin = 1
#
xlStroke = 2

excel.d.ras

Enum Excel.XlSortDataOption

Specifies how text that looks like numbers is treated when sorting.

Microsoft reference

#
xlSortNormal = 0
#
xlSortTextAsNumbers = 1

excel.d.ras

Enum Excel.XlYesNoGuess

Specifies whether the first row is a header.

Microsoft reference

#
xlGuess = 0
#
xlNo = 2
#
xlYes = 1

excel.d.ras

Enum Excel.XlDeleteShiftDirection

Specifies the direction cells shift after deleting cells.

Microsoft reference

#
xlShiftToLeft = -4159
#
xlShiftUp = -4162

excel.d.ras

Enum Excel.XlInsertShiftDirection

Specifies the direction existing cells shift when inserting cells.

Microsoft reference

#
xlShiftDown = -4121
#
xlShiftToRight = -4161

excel.d.ras

Enum Excel.XlInsertFormatOrigin

Specifies which side the formatting of inserted cells is copied from.

Microsoft reference

#
xlFormatFromLeftOrAbove = 0
#
xlFormatFromRightOrBelow = 1

excel.d.ras

Enum Excel.XlEnableCancelKey

Specifies how the interrupt keys are handled while a macro runs.

Microsoft reference

#
xlDisabled = 0
#
xlErrorHandler = 2
#
xlInterrupt = 1

excel.d.ras

Enum Excel.XlMousePointer

Specifies the shape of the mouse pointer.

Microsoft reference

#
xlDefault = -4143
#
xlIBeam = 3
#
xlNorthwestArrow = 1
#
xlWait = 2

excel.d.ras

Enum Excel.XlWindowState

Specifies the state of a window.

Microsoft reference

#
xlMaximized = -4137
#
xlMinimized = -4140
#
xlNormal = -4143

excel.d.ras

Enum Excel.XlWindowView

Specifies the view mode of a window.

Microsoft reference

#
xlNormalView = 1
#
xlPageBreakPreview = 2
#
xlPageLayoutView = 3

excel.d.ras

Enum Excel.XlWindowType

Represents the type of a window.

Microsoft reference

#
xlChartAsWindow = 5
#
xlChartInPlace = 4
#
xlClipboard = 3
#
xlInfo = -4129
#
xlWorkbook = 1

excel.d.ras

Enum Excel.XlArrangeStyle

Specifies how windows are arranged.

Microsoft reference

#
xlArrangeStyleCascade = 7
#
xlArrangeStyleHorizontal = -4128
#
xlArrangeStyleTiled = 1
#
xlArrangeStyleVertical = -4166

excel.d.ras

Enum Excel.XlAutoFillType

Specifies the AutoFill method.

Microsoft reference

#
xlFillCopy = 1
#
xlFillDays = 5
#
xlFillDefault = 0
#
xlFillFormats = 3
#
xlFillMonths = 7
#
xlFillSeries = 2
#
xlFillValues = 4
#
xlFillWeekdays = 6
#
xlFillYears = 8
#
xlGrowthTrend = 10
#
xlLinearTrend = 9
#
xlFlashFill = 11

excel.d.ras

Enum Excel.XlAutoFilterOperator

Specifies the operator that joins two AutoFilter criteria, or the type of filter.

Microsoft reference

#
xlAnd = 1
#
xlBottom10Items = 4
#
xlBottom10Percent = 6
#
xlFilterCellColor = 8
#
xlFilterDynamic = 11
#
xlFilterFontColor = 9
#
xlFilterIcon = 10
#
xlFilterValues = 7
#
xlOr = 2
#
xlTop10Items = 3
#
xlTop10Percent = 5

excel.d.ras

Enum Excel.XlPattern

Specifies the fill pattern.

Microsoft reference

#
xlPatternAutomatic = -4105
#
xlPatternChecker = 9
#
xlPatternCrissCross = 16
#
xlPatternDown = -4121
#
xlPatternGray16 = 17
#
xlPatternGray25 = -4124
#
xlPatternGray50 = -4125
#
xlPatternGray75 = -4126
#
xlPatternGray8 = 18
#
xlPatternGrid = 15
#
xlPatternHorizontal = -4128
#
xlPatternLightDown = 13
#
xlPatternLightHorizontal = 11
#
xlPatternLightUp = 14
#
xlPatternLightVertical = 12
#
xlPatternNone = -4142
#
xlPatternSemiGray75 = 10
#
xlPatternSolid = 1
#
xlPatternUp = -4162
#
xlPatternVertical = -4166

excel.d.ras

Enum Excel.XlColorIndex

Represents the special color palette index values (automatic / none).

Microsoft reference

#
xlColorIndexAutomatic = -4105
#
xlColorIndexNone = -4142

excel.d.ras

Enum Excel.XlUnderlineStyle

Specifies the type of underline.

Microsoft reference

#
xlUnderlineStyleDouble = -4119
#
xlUnderlineStyleDoubleAccounting = 5
#
xlUnderlineStyleNone = -4142
#
xlUnderlineStyleSingle = 2
#
xlUnderlineStyleSingleAccounting = 4

excel.d.ras

Enum Excel.XlReferenceStyle

Specifies the cell reference style.

Microsoft reference

#
xlA1 = 1
#
xlR1C1 = -4150

excel.d.ras

Enum Excel.XlReferenceType

Specifies the kind of reference (absolute / relative) when converting formulas.

Microsoft reference

#
xlAbsolute = 1
#
xlAbsRowRelColumn = 2
#
xlRelative = 4
#
xlRelRowAbsColumn = 3

excel.d.ras

Enum Excel.XlSaveAsAccessMode

Specifies the sharing mode used when saving a workbook.

Microsoft reference

#
xlExclusive = 3
#
xlNoChange = 1
#
xlShared = 2

excel.d.ras

Enum Excel.XlSaveAction

Specifies whether changes are saved when closing a workbook.

Microsoft reference

#
xlDoNotSaveChanges = 2
#
xlSaveChanges = 1

excel.d.ras

Enum Excel.XlFileAccess

Specifies the access mode of a workbook.

Microsoft reference

#
xlReadOnly = 3
#
xlReadWrite = 2

excel.d.ras

Enum Excel.XlCorruptLoad

Specifies how a workbook is repaired when opened.

Microsoft reference

#
xlExtractData = 2
#
xlNormalLoad = 0
#
xlRepairFile = 1

excel.d.ras

Enum Excel.XlLinkType

Specifies the type of link.

Microsoft reference

excel.d.ras

Enum Excel.XlRunAutoMacro

Specifies the kind of automatic macro to run.

Microsoft reference

#
xlAutoActivate = 3
#
xlAutoClose = 2
#
xlAutoDeactivate = 4
#
xlAutoOpen = 1

excel.d.ras

Enum Excel.XlRangeValueDataType

Specifies the format of the data returned by Range.Value.

Microsoft reference

#
xlRangeValueDefault = 10
#
xlRangeValueMSPersistXML = 12
#
xlRangeValueXMLSpreadsheet = 11

excel.d.ras

Enum Excel.XlCutCopyMode

Represents whether Excel is in Cut mode or Copy mode.

Microsoft reference

#
xlCopy = 1
#
xlCut = 2

excel.d.ras

Enum Excel.XlFixedFormatType

Specifies the fixed-layout format to export (PDF / XPS).

Microsoft reference

#
xlTypePDF = 0
#
xlTypeXPS = 1

excel.d.ras

Enum Excel.XlFixedFormatQuality

Specifies the quality of PDF / XPS output.

Microsoft reference

#
xlQualityMinimum = 1
#
xlQualityStandard = 0

excel.d.ras

Enum Excel.XlPageOrientation

Specifies the paper orientation.

Microsoft reference

#
xlLandscape = 2
#
xlPortrait = 1

excel.d.ras

Enum Excel.XlPaperSize

Specifies the paper size.

Microsoft reference

#
xlPaper10x14 = 16
#
xlPaper11x17 = 17
#
xlPaperA3 = 8
#
xlPaperA4 = 9
#
xlPaperA4Small = 10
#
xlPaperA5 = 11
#
xlPaperB4 = 12
#
xlPaperB5 = 13
#
xlPaperCsheet = 24
#
xlPaperDsheet = 25
#
xlPaperEnvelope10 = 20
#
xlPaperEnvelope11 = 21
#
xlPaperEnvelope12 = 22
#
xlPaperEnvelope14 = 23
#
xlPaperEnvelope9 = 19
#
xlPaperEnvelopeB4 = 33
#
xlPaperEnvelopeB5 = 34
#
xlPaperEnvelopeB6 = 35
#
xlPaperEnvelopeC3 = 29
#
xlPaperEnvelopeC4 = 30
#
xlPaperEnvelopeC5 = 28
#
xlPaperEnvelopeC6 = 31
#
xlPaperEnvelopeC65 = 32
#
xlPaperEnvelopeDL = 27
#
xlPaperEnvelopeItaly = 36
#
xlPaperEnvelopeMonarch = 37
#
xlPaperEnvelopePersonal = 38
#
xlPaperEsheet = 26
#
xlPaperExecutive = 7
#
xlPaperFanfoldLegalGerman = 41
#
xlPaperFanfoldStdGerman = 40
#
xlPaperFanfoldUS = 39
#
xlPaperFolio = 14
#
xlPaperLedger = 4
#
xlPaperLegal = 5
#
xlPaperLetter = 1
#
xlPaperLetterSmall = 2
#
xlPaperNote = 18
#
xlPaperQuarto = 15
#
xlPaperStatement = 6
#
xlPaperTabloid = 3
#
xlPaperUser = 256

excel.d.ras

Enum Excel.XlOrder

Specifies the page order when the output spans several pages.

Microsoft reference

#
xlDownThenOver = 1
#
xlOverThenDown = 2

excel.d.ras

Enum Excel.XlPrintLocation

Specifies where comments are printed.

Microsoft reference

#
xlPrintInPlace = 16
#
xlPrintNoComments = -4142
#
xlPrintSheetEnd = 1

excel.d.ras

Enum Excel.XlPrintErrors

Specifies how error values are printed.

Microsoft reference

#
xlPrintErrorsBlank = 1
#
xlPrintErrorsDash = 2
#
xlPrintErrorsDisplayed = 0
#
xlPrintErrorsNA = 3

excel.d.ras

Enum Excel.XlListObjectSourceType

Specifies the type of a table's data source.

Microsoft reference

#
xlSrcExternal = 0
#
xlSrcModel = 4
#
xlSrcQuery = 3
#
xlSrcRange = 1
#
xlSrcXml = 2

excel.d.ras

Enum Excel.XlTotalsCalculation

Specifies the calculation used in a table's totals row.

Microsoft reference

#
xlTotalsCalculationAverage = 2
#
xlTotalsCalculationCount = 3
#
xlTotalsCalculationCountNums = 4
#
xlTotalsCalculationCustom = 9
#
xlTotalsCalculationMax = 6
#
xlTotalsCalculationMin = 5
#
xlTotalsCalculationNone = 0
#
xlTotalsCalculationStdDev = 7
#
xlTotalsCalculationSum = 1
#
xlTotalsCalculationVar = 8

excel.d.ras

Enum Excel.XlDVType

Specifies the type of data validation.

Microsoft reference

#
xlValidateCustom = 7
#
xlValidateDate = 4
#
xlValidateDecimal = 2
#
xlValidateInputOnly = 0
#
xlValidateList = 3
#
xlValidateTextLength = 6
#
xlValidateTime = 5
#
xlValidateWholeNumber = 1

excel.d.ras

Enum Excel.XlDVAlertStyle

Specifies the style of the data validation error message.

Microsoft reference

#
xlValidAlertInformation = 3
#
xlValidAlertStop = 1
#
xlValidAlertWarning = 2

excel.d.ras

Enum Excel.XlFormatConditionType

Specifies the type of conditional format.

Microsoft reference

#
xlAboveAverageCondition = 12
#
xlBlanksCondition = 10
#
xlCellValue = 1
#
xlColorScale = 3
#
xlDataBar = 4
#
xlErrorsCondition = 16
#
xlExpression = 2
#
xlIconSet = 6
#
xlNoBlanksCondition = 13
#
xlNoErrorsCondition = 17
#
xlTextString = 9
#
xlTimePeriod = 11
#
xlTop10 = 5
#
xlUniqueValues = 8

excel.d.ras

Enum Excel.XlFormatConditionOperator

Specifies the comparison operator for conditional formats and data validation.

Microsoft reference

#
xlBetween = 1
#
xlEqual = 3
#
xlGreater = 5
#
xlGreaterEqual = 7
#
xlLess = 6
#
xlLessEqual = 8
#
xlNotBetween = 2
#
xlNotEqual = 4

excel.d.ras

Enum Excel.XlTextParsingType

Specifies how text is split into columns (delimited / fixed width).

Microsoft reference

#
xlDelimited = 1
#
xlFixedWidth = 2

excel.d.ras

Enum Excel.XlTextQualifier

Specifies the text qualifier (quote character).

Microsoft reference

#
xlTextQualifierDoubleQuote = 1
#
xlTextQualifierNone = -4142
#
xlTextQualifierSingleQuote = 2

excel.d.ras

Enum Excel.XlColumnDataType

Specifies the data format of a column when importing text.

Microsoft reference

#
xlDMYFormat = 4
#
xlDYMFormat = 7
#
xlEMDFormat = 10
#
xlGeneralFormat = 1
#
xlMDYFormat = 3
#
xlMYDFormat = 6
#
xlSkipColumn = 9
#
xlTextFormat = 2
#
xlYDMFormat = 8
#
xlYMDFormat = 5

excel.d.ras

Enum Excel.XlConsolidationFunction

Specifies the summary function used for subtotals and consolidation.

Microsoft reference

#
xlAverage = -4106
#
xlCount = -4112
#
xlCountNums = -4113
#
xlDistinctCount = 11
#
xlMax = -4136
#
xlMin = -4139
#
xlProduct = -4149
#
xlStDev = -4155
#
xlStDevP = -4156
#
xlSum = -4157
#
xlUnknown = 1000
#
xlVar = -4164
#
xlVarP = -4165

excel.d.ras

Enum Excel.XlSummaryRow

Specifies whether summary rows go above or below the data.

Microsoft reference

#
xlSummaryAbove = 0
#
xlSummaryBelow = 1

excel.d.ras

Enum Excel.XlFilterAction

Specifies whether an advanced filter shows the results in place or copies them to another location.

Microsoft reference

#
xlFilterCopy = 2
#
xlFilterInPlace = 1

excel.d.ras

Enum Excel.XlFillWith

Specifies what is copied when filling across sheets.

Microsoft reference

#
xlFillWithAll = -4104
#
xlFillWithContents = 2
#
xlFillWithFormats = -4122

excel.d.ras

Enum Excel.XlEnableSelection

Specifies which cells can be selected on a protected sheet.

Microsoft reference

#
xlNoRestrictions = 0
#
xlNoSelection = -4142
#
xlUnlockedCells = 1

excel.d.ras

Enum Excel.XlPlacement

Specifies how a shape follows when cells are moved or resized.

Microsoft reference

#
xlFreeFloating = 3
#
xlMove = 2
#
xlMoveAndSize = 1

excel.d.ras

Enum Excel.XlFormControl

Specifies the type of form control.

Microsoft reference

#
xlButtonControl = 0
#
xlCheckBox = 1
#
xlDropDown = 2
#
xlEditBox = 3
#
xlGroupBox = 4
#
xlLabel = 5
#
xlListBox = 6
#
xlOptionButton = 7
#
xlScrollBar = 8
#
xlSpinner = 9

excel.d.ras

Enum Excel.XlPictureAppearance

Specifies the appearance (as shown on screen / as printed) when copying as a picture.

Microsoft reference

#
xlPrinter = 2
#
xlScreen = 1

excel.d.ras

Enum Excel.XlCopyPictureFormat

Specifies the image format when copying as a picture.

Microsoft reference

#
xlBitmap = 2
#
xlPicture = -4147

excel.d.ras

Enum Excel.XlChartType

Specifies the chart type (commonly used ones only).

Microsoft reference

#
xlColumnClustered = 51
#
xlColumnStacked = 52
#
xlColumnStacked100 = 53
#
xl3DColumnClustered = 54
#
xl3DColumnStacked = 55
#
xl3DColumnStacked100 = 56
#
xl3DColumn = -4100
#
xlBarClustered = 57
#
xlBarStacked = 58
#
xlBarStacked100 = 59
#
xl3DBarClustered = 60
#
xl3DBarStacked = 61
#
xl3DBarStacked100 = 62
#
xlLine = 4
#
xlLineStacked = 63
#
xlLineStacked100 = 64
#
xlLineMarkers = 65
#
xlLineMarkersStacked = 66
#
xlLineMarkersStacked100 = 67
#
xl3DLine = -4101
#
xlPie = 5
#
xlPieExploded = 69
#
xl3DPie = -4102
#
xl3DPieExploded = 70
#
xlPieOfPie = 68
#
xlBarOfPie = 71
#
xlDoughnut = -4120
#
xlDoughnutExploded = 80
#
xlXYScatter = -4169
#
xlXYScatterLines = 74
#
xlXYScatterLinesNoMarkers = 75
#
xlXYScatterSmooth = 72
#
xlXYScatterSmoothNoMarkers = 73
#
xlArea = 1
#
xlAreaStacked = 76
#
xlAreaStacked100 = 77
#
xl3DArea = -4098
#
xl3DAreaStacked = 78
#
xl3DAreaStacked100 = 79
#
xlBubble = 15
#
xlBubble3DEffect = 87
#
xlRadar = -4151
#
xlRadarMarkers = 81
#
xlRadarFilled = 82
#
xlSurface = 83
#
xlSurfaceWireframe = 84
#
xlSurfaceTopView = 85
#
xlSurfaceTopViewWireframe = 86
#
xlStockHLC = 88
#
xlStockOHLC = 89
#
xlStockVHLC = 90
#
xlStockVOHLC = 91
#
xlTreemap = 117
#
xlHistogram = 118
#
xlWaterfall = 119
#
xlSunburst = 120
#
xlBoxwhisker = 121
#
xlPareto = 122
#
xlFunnel = 123

excel.d.ras

Enum Excel.XlChartLocation

Specifies where a chart is moved.

Microsoft reference

#
xlLocationAsNewSheet = 1
#
xlLocationAsObject = 2
#
xlLocationAutomatic = 3

excel.d.ras

Enum Excel.XlRowCol

Specifies whether data series are taken from rows or columns.

Microsoft reference

#
xlColumns = 2
#
xlRows = 1

excel.d.ras

Enum Excel.XlAxisType

Specifies the type of a chart axis.

Microsoft reference

#
xlCategory = 1
#
xlSeriesAxis = 3
#
xlValue = 2

excel.d.ras

Enum Excel.XlAxisGroup

Specifies the axis group of a chart (primary / secondary).

Microsoft reference

#
xlPrimary = 1
#
xlSecondary = 2

excel.d.ras

Enum Excel.XlLegendPosition

Specifies the position of the legend.

Microsoft reference

#
xlLegendPositionBottom = -4107
#
xlLegendPositionCorner = 2
#
xlLegendPositionCustom = -4161
#
xlLegendPositionLeft = -4131
#
xlLegendPositionRight = -4152
#
xlLegendPositionTop = -4160

excel.d.ras

Enum Excel.XlDisplayBlanksAs

Specifies how blank cells are plotted in a chart.

Microsoft reference

#
xlInterpolated = 3
#
xlNotPlotted = 1
#
xlZero = 2

excel.d.ras

Enum Excel.XlCVError

Error numbers that correspond to cell error values. Pass one to CVErr to make an error value.

Microsoft reference

#
xlErrDiv0 = 2007
#
xlErrNA = 2042
#
xlErrName = 2029
#
xlErrNull = 2000
#
xlErrNum = 2036
#
xlErrRef = 2023
#
xlErrValue = 2015
#
xlErrSpill = 2045

excel.d.ras

Enum Excel.XlThemeColor

Specifies a theme color.

Microsoft reference

#
xlThemeColorAccent1 = 5
#
xlThemeColorAccent2 = 6
#
xlThemeColorAccent3 = 7
#
xlThemeColorAccent4 = 8
#
xlThemeColorAccent5 = 9
#
xlThemeColorAccent6 = 10
#
xlThemeColorDark1 = 1
#
xlThemeColorDark2 = 3
#
xlThemeColorLight1 = 2
#
xlThemeColorLight2 = 4

excel.d.ras

Enum Excel.XlThemeFont

Specifies a theme font.

Microsoft reference

#
xlThemeFontMajor = 1
#
xlThemeFontMinor = 2
#
xlThemeFontNone = 0

excel.d.ras

Enum Excel.XlApplicationInternational

Specifies the country/region setting retrieved with Application.International.

Microsoft reference

#
xl24HourClock = 33
#
xl4DigitYears = 43
#
xlAlternateArraySeparator = 16
#
xlColumnSeparator = 14
#
xlCountryCode = 1
#
xlCountrySetting = 2
#
xlCurrencyBefore = 37
#
xlCurrencyCode = 25
#
xlCurrencyDigits = 27
#
xlCurrencyLeadingZeros = 40
#
xlCurrencyMinusSign = 38
#
xlCurrencyNegative = 28
#
xlCurrencySpaceBefore = 36
#
xlCurrencyTrailingZeros = 39
#
xlDateOrder = 32
#
xlDateSeparator = 17
#
xlDayCode = 21
#
xlDayLeadingZero = 42
#
xlDecimalSeparator = 3
#
xlGeneralFormatName = 26
#
xlHourCode = 22
#
xlLeftBrace = 12
#
xlLeftBracket = 10
#
xlListSeparator = 5
#
xlLowerCaseColumnLetter = 9
#
xlLowerCaseRowLetter = 8
#
xlMDY = 44
#
xlMetric = 35
#
xlMinuteCode = 23
#
xlMonthCode = 20
#
xlMonthLeadingZero = 41
#
xlMonthNameChars = 30
#
xlNoncurrencyDigits = 29
#
xlNonEnglishFunctions = 34
#
xlRightBrace = 13
#
xlRightBracket = 11
#
xlRowSeparator = 15
#
xlSecondCode = 24
#
xlThousandsSeparator = 4
#
xlTimeLeadingZero = 45
#
xlTimeSeparator = 18
#
xlUpperCaseColumnLetter = 7
#
xlUpperCaseRowLetter = 6
#
xlWeekdayNameChars = 31
#
xlYearCode = 19

excel.d.ras

Global application

const application: Excel.Application

VBA: Application

The Excel application itself.

Microsoft reference

excel.d.ras

Global thisWorkbook

const thisWorkbook: Excel.Workbook

VBA: ThisWorkbook

The workbook that contains the running macro.

Microsoft reference

excel.d.ras

Global activeWorkbook

const activeWorkbook: Excel.Workbook

VBA: ActiveWorkbook

The active workbook. Nothing if no workbook is open.

Microsoft reference

excel.d.ras

Global activeSheet

const activeSheet: Excel.Worksheet | Excel.Chart

VBA: ActiveSheet

The active sheet (a worksheet or a chart sheet). Nothing if no workbook is open.

Microsoft reference

excel.d.ras

Global activeCell

const activeCell: Excel.Range

VBA: ActiveCell

The active cell.

Microsoft reference

excel.d.ras

Global activeWindow

const activeWindow: Excel.Window

VBA: ActiveWindow

The active window.

Microsoft reference

excel.d.ras

Global selection

const selection: object

VBA: Selection

The currently selected object. Of type Object.

Microsoft reference

excel.d.ras

Global workbooks

const workbooks: Excel.Workbooks

VBA: Workbooks

The collection of all open workbooks.

Microsoft reference

excel.d.ras

Global worksheets

const worksheets: Excel.Sheets<Excel.Worksheet>

VBA: Worksheets

All worksheets in the active workbook.

Microsoft reference

excel.d.ras

Global sheets

const sheets: Excel.Sheets

VBA: Sheets

All sheets in the active workbook (including chart sheets).

Microsoft reference

excel.d.ras

Global names

const names: Excel.Names

VBA: Names

The collection of defined names in the active workbook.

Microsoft reference

excel.d.ras

Global windows

const windows: Excel.Windows

VBA: Windows

The collection of all windows.

Microsoft reference

excel.d.ras

Global worksheetFunction

const worksheetFunction: Excel.WorksheetFunction

VBA: WorksheetFunction

An object for calling worksheet functions from VBA.

Microsoft reference

excel.d.ras

Function range

function range(cell1: any, cell2?: any): Excel.Range

VBA: Range

Returns a cell or cell range on the active sheet.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

excel.d.ras

Function cells

function cells(row?: any, col?: any): Excel.Range

VBA: Cells

Returns cells of the active sheet. All cells when called without arguments.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

excel.d.ras

Function rows

function rows(index?: any): Excel.Range

VBA: Rows

Returns rows of the active sheet. All rows when called without arguments.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

excel.d.ras

Function columns

function columns(index?: any): Excel.Range

VBA: Columns

Returns columns of the active sheet. All columns when called without arguments.

A property with arguments (it can be assigned to: x(…) = value).

Microsoft reference

excel.d.ras

Function union

function union(arg1: Excel.Range, arg2: Excel.Range, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): Excel.Range

VBA: Union

Returns a range that combines several cell ranges into one.

Microsoft reference

excel.d.ras

Function intersect

function intersect(arg1: Excel.Range, arg2: Excel.Range, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): Excel.Range

VBA: Intersect

Returns the intersection of several cell ranges. Nothing if they do not overlap.

Microsoft reference

excel.d.ras

Function evaluate

function evaluate(name: any): cellValue

VBA: Evaluate

Evaluates a name or formula string to an object or a value.

Microsoft reference

excel.d.ras

Function run

function run(macro: any, arg1?: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any, arg6?: any, arg7?: any, arg8?: any, arg9?: any, arg10?: any): any

VBA: Run

Calls a macro or function by name.

Microsoft reference

excel.d.ras