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).
- In RAS source, members and globals are written in camelCase (
ws.cells(r, 1).value,application.screenUpdating). The generated VBA uses the type library spelling (Cells,ScreenUpdating). The "VBA:" of each entry gives that spelling. Writing the VBA spelling also works, but it produces a warning and can be rewritten withras check --fix. - Type names are written with the namespace, as in
Excel.Range. Enum constants (xlUp,xlSheetVisible) can be written without qualification. - Properties that take arguments in VBA (
Cells,Range,Offset, etc.) are declared as methods. Those whose arguments are all optional can also be written without parentheses (ws.cells). - Only some members work when running without Excel (
ras run/ras testand the playground).ras check --target stand-inwarns about members that cannot be used before you run.
Extension methods (range.lastRow(), ws.find(), book.sheet(), etc.) are in Range, sheets and workbooks.
Reference
Interface Excel.Application
Represents the entire Excel application.
- #
screenUpdating: boolean
Whether the screen is redrawn. Setting it to
falsemakes macros faster.VBA:
ScreenUpdating- #
enableEvents: boolean
Whether events are raised.
VBA:
EnableEvents- #
calculation: XlCalculation
The calculation mode (automatic / manual). Setting it fails when no workbook is open.
VBA:
Calculation- #
displayAlerts: boolean
Whether confirmation messages and alerts are shown.
VBA:
DisplayAlerts- #
statusBar: string | boolean
The status bar text. Assigning
falserestores Excel's default display. Returnsfalsewhile Excel controls the display.VBA:
StatusBar- #
displayStatusBar: boolean
Whether the status bar is shown.
VBA:
DisplayStatusBar- #
cursor: XlMousePointer
The shape of the mouse pointer.
VBA:
Cursor- #
interactive: boolean
Whether keyboard and mouse input is accepted.
VBA:
Interactive- #
enableCancelKey: XlEnableCancelKey
How Esc / Ctrl+Break is handled while a macro runs.
VBA:
EnableCancelKey- #
cutCopyMode: XlCutCopyMode
The state of Cut / Copy mode. Assign 0 (VBA's
False) to cancel it.VBA:
CutCopyMode- #
caption: string
The name shown in the title bar.
VBA:
Caption- #
readonly version: string
The Excel version number (such as "16.0").
VBA:
Version- #
readonly operatingSystem: string
The name and version of the operating system.
VBA:
OperatingSystem- #
userName: string
The current user name.
VBA:
UserName- #
readonly hwnd: int
The handle of Excel's main window.
VBA:
Hwnd- #
readonly activeWorkbook: Workbook
The active workbook. Nothing if no workbook is open.
VBA:
ActiveWorkbook- #
readonly activeSheet: Worksheet | Chart
The active sheet (a worksheet or a chart sheet). Nothing if no workbook is open.
VBA:
ActiveSheet- #
readonly activeCell: Range
The active cell.
VBA:
ActiveCell- #
readonly activeWindow: Window
The active window.
VBA:
ActiveWindow- #
readonly activeChart: Chart
The active chart.
VBA:
ActiveChart- #
readonly selection: object
The currently selected object (a Range for a cell range).
VBA:
Selection- #
readonly thisWorkbook: Workbook
The workbook that contains the running macro.
VBA:
ThisWorkbook- #
readonly thisCell: Range
The cell that is calling the user-defined function.
VBA:
ThisCell- #
readonly workbooks: Workbooks
The collection of all open workbooks.
VBA:
Workbooks- #
readonly worksheets: Sheets<Worksheet>
All worksheets in the active workbook.
VBA:
Worksheets- #
readonly sheets: Sheets
All sheets in the active workbook (including chart sheets).
VBA:
Sheets- #
readonly charts: Sheets<Chart>
All chart sheets in the active workbook.
VBA:
Charts- #
readonly windows: Windows
The collection of all windows.
VBA:
Windows- #
readonly names: Names
The collection of defined names in the active workbook.
VBA:
Names- #
readonly worksheetFunction: WorksheetFunction
An object for calling worksheet functions from VBA.
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).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).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).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).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.
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.
VBA:
Intersect- #
evaluate(name: any): cellValue
Evaluates a name or formula string to an object or a value.
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.
VBA:
Run- #
onTime(earliestTime: any, procedure: string, latestTime?: any, schedule?: any): void
Schedules a procedure to run at the given time.
VBA:
OnTime- #
onKey(key: string, procedure?: any): void
Assigns a procedure to a keystroke.
VBA:
OnKey- #
wait(time: any): boolean
Pauses the macro until the given time.
VBA:
Wait- #
calculate(): void
Recalculates all open workbooks.
VBA:
Calculate- #
calculateFull(): void
Forces a full recalculation of all open workbooks.
VBA:
CalculateFull- #
calculateFullRebuild(): void
Rebuilds the dependencies and then does a full recalculation.
VBA:
CalculateFullRebuild- #
inputBox(prompt: string, title?: any, defaultValue?: any, left?: any, top?: any, helpFile?: any, helpContextId?: any, type?: any): any
Shows an input dialog.
typespecifies the kind of value accepted (number, cell range, and so on).VBA:
InputBox- #
getOpenFilename(fileFilter?: any, filterIndex?: any, title?: any, buttonText?: any, multiSelect?: any): string | boolean | any[]
Shows the Open dialog and returns the path (
falsewhen canceled). Does not open the file. WithmultiSelectset totrue, returns an array of the chosen paths (typeofis"Variant()"). The array Excel returns is 1-based, but it is converted to 0-based like other RAS arrays.VBA:
GetOpenFilename- #
getSaveAsFilename(initialFilename?: any, fileFilter?: any, filterIndex?: any, title?: any, buttonText?: any): string | boolean
Shows the Save As dialog and returns the path (
falsewhen canceled). Does not save.VBA:
GetSaveAsFilename- #
fileDialog(fileDialogType: Office.MsoFileDialogType): Office.FileDialog
Returns a file / folder picker dialog object.
VBA:
FileDialog- #
goto(reference?: any, scroll?: any): void
Goes to and selects the given cell range or procedure.
VBA:
Goto- #
quit(): void
Quits Excel.
VBA:
Quit- #
volatile(volatile?: any): void
Makes a user-defined function volatile (evaluated on every recalculation).
VBA:
Volatile- #
caller(index?: any): any
Returns information about the macro's caller (a Range for a function called from a cell).
VBA:
Caller- #
international(index?: any): any
Returns country/region settings (separators and so on).
VBA:
International- #
readonly pathSeparator: string
The path separator.
VBA:
PathSeparator- #
decimalSeparator: string
The decimal separator.
VBA:
DecimalSeparator- #
thousandsSeparator: string
The thousands separator.
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.
VBA:
Match- #
index(arg1: any, arg2: any, arg3?: any, arg4?: any): cellValue
Calls the worksheet function INDEX. Returns an error value on failure.
VBA:
Index- #
vLookup(arg1: cellValue, arg2: any, arg3: any, arg4?: any): cellValue
Calls the worksheet function VLOOKUP. Returns an error value when not found.
VBA:
VLookup- #
transpose(arg1: any): any
Swaps the rows and columns of an array.
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).
VBA:
ConvertFormula- #
readonly commandBars: object
The collection of command bars.
VBA:
CommandBars- #
readonly vbe: object
The object model of the VBA editor.
VBA:
VBE- #
readonly addIns: object
The collection of add-ins.
VBA:
AddIns- #
readonly comAddIns: object
The collection of COM add-ins.
VBA:
COMAddIns- #
referenceStyle: XlReferenceStyle
The reference style of formulas (A1 / R1C1).
VBA:
ReferenceStyle- #
readonly ready: boolean
Whether Excel is ready to accept operations.
VBA:
Ready- #
readonly calculationState: XlCalculationState
The progress of the calculation.
VBA:
CalculationState- #
readonly calculationVersion: int
The version number of the calculation engine.
VBA:
CalculationVersion- #
moveAfterReturn: boolean
Whether the active cell moves after pressing Enter.
VBA:
MoveAfterReturn- #
moveAfterReturnDirection: XlDirection
The direction the active cell moves after pressing Enter.
VBA:
MoveAfterReturnDirection- #
enableAnimations: boolean
Whether inserting and deleting rows or columns is animated.
VBA:
EnableAnimations- #
printCommunication: boolean
Whether Excel communicates with the printer. Setting it to
falsemakes PageSetup settings faster.VBA:
PrintCommunication- #
askToUpdateLinks: boolean
Whether to ask about updating links when opening a workbook.
VBA:
AskToUpdateLinks- #
automationSecurity: Office.MsoAutomationSecurity
The macro security used when files are opened from a program.
VBA:
AutomationSecurity- #
displayFullScreen: boolean
Whether Excel is in full-screen mode.
VBA:
DisplayFullScreen- #
windowState: XlWindowState
The state of the main window (maximized / minimized / normal).
VBA:
WindowState- #
width: double
The width of the main window (points).
VBA:
Width- #
height: double
The height of the main window (points).
VBA:
Height- #
left: double
The position of the main window's left edge (points).
VBA:
Left- #
top: double
The position of the main window's top edge (points).
VBA:
Top- #
visible: boolean
Whether Excel's window is visible.
VBA:
Visible- #
sendKeys(keys: any, wait?: any): void
Sends keystrokes to the active application.
VBA:
SendKeys- #
undo(): void
Undoes the last user action.
VBA:
Undo- #
repeat(): void
Repeats the last user action.
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
Interface Excel.Workbooks
The collection of all open workbooks.
- #
(index: any): Workbook
Returns a workbook by index or workbook name (default member).
- #
item(index: any): Workbook
Returns a workbook by index or workbook name.
VBA:
Item- #
readonly count: int
The number of open workbooks.
VBA:
Count- #
add(template?: any): Workbook
Creates a new workbook.
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.
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.
VBA:
OpenText- #
openXML(filename: string, stylesheets?: any, loadOption?: any): Workbook
Opens an XML data file.
VBA:
OpenXML- #
close(): void
Closes all open workbooks.
VBA:
Close- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Workbook
Represents an Excel workbook.
- #
readonly name: string
The file name of the workbook (without the path).
VBA:
Name- #
readonly fullName: string
The full file name including the path.
VBA:
FullName- #
readonly path: string
The path of the folder that contains the workbook. An empty string if not saved yet.
VBA:
Path- #
saved: boolean
trueif nothing has changed since the last save. Assigningtruemarks the workbook as unchanged.VBA:
Saved- #
readonly readOnly: boolean
Whether the workbook is open read-only.
VBA:
ReadOnly- #
readonly worksheets: Sheets<Worksheet>
All worksheets in the workbook.
VBA:
Worksheets- #
readonly sheets: Sheets
All sheets in the workbook (including chart sheets).
VBA:
Sheets- #
readonly names: Names
The collection of defined names in the workbook.
VBA:
Names- #
readonly windows: Windows
The collection of windows showing the workbook.
VBA:
Windows- #
readonly activeSheet: Worksheet | Chart
The active sheet of the workbook.
VBA:
ActiveSheet- #
save(): void
Saves the workbook.
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.
VBA:
SaveAs- #
saveCopyAs(filename: any): void
Saves a copy to a file, leaving the open workbook as it is.
VBA:
SaveCopyAs- #
close(saveChanges?: any, filename?: any, routeWorkbook?: any): void
Closes the workbook.
VBA:
Close- #
activate(): void
Activates the workbook.
VBA:
Activate- #
protect(password?: any, structure?: any, windows?: any): void
Protects the workbook's structure or windows.
VBA:
Protect- #
unprotect(password?: any): void
Removes the workbook's protection.
VBA:
Unprotect- #
refreshAll(): void
Refreshes all external data ranges and PivotTables.
VBA:
RefreshAll- #
readonly fileFormat: XlFileFormat
The file format of the workbook.
VBA:
FileFormat- #
readonly hasVBProject: boolean
Whether the workbook has a VBA project.
VBA:
HasVBProject- #
readonly vbProject: object
The workbook's VBA project (VBIDE.VBProject).
VBA:
VBProject- #
readonly builtinDocumentProperties: object
The built-in document properties (author, title, and so on).
VBA:
BuiltinDocumentProperties- #
readonly customDocumentProperties: object
The custom document properties.
VBA:
CustomDocumentProperties- #
readonly application: Application
The Application object the workbook belongs to.
VBA:
Application- #
readonly parent: object
The parent object.
VBA:
Parent- #
readonly codeName: string
The code name of the workbook module (ThisWorkbook by default).
VBA:
CodeName- #
date1904: boolean
Whether the workbook uses the 1904 date system.
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.
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.
VBA:
PrintOut- #
readonly connections: object
The collection of external data connections.
VBA:
Connections- #
readonly queries: object
The collection of Power Query queries.
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- #
updateLinks: XlUpdateLinks
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- #
changeLink(name: string, newName: string, type?: XlLinkType): void
VBA:
ChangeLink- #
breakLink(name: string, type: XlLinkType): void
VBA:
BreakLink- #
linkSources(type?: any): any
VBA:
LinkSources- #
updateLink(name?: any, type?: any): void
VBA:
UpdateLink- #
runAutoMacros(which: XlRunAutoMacro): void
VBA:
RunAutoMacros- #
followHyperlink(address: string, subAddress?: any, newWindow?: any, addHistory?: any, extraInfo?: any, method?: any, headerInfo?: any): void
VBA:
FollowHyperlink- #
deleteNumberFormat(numberFormat: string): void
VBA:
DeleteNumberFormat- #
resetColors(): void
VBA:
ResetColors
Interface Excel.Sheets
interface Sheets<T = Worksheet | Chart>
The collection of sheets (worksheets / chart sheets) in a workbook.
- #
(index: any): T
Returns a sheet by index or sheet name (default member).
- #
item(index: any): T
Returns a sheet by index or sheet name.
VBA:
Item- #
readonly count: int
The number of sheets.
VBA:
Count- #
add(before?: any, after?: any, count?: any, type?: any): T
Adds a new sheet and activates it.
VBA:
Add- #
copy(before?: any, after?: any): void
Copies the sheets. Without a position, the copy is made in a new workbook.
VBA:
Copy- #
move(before?: any, after?: any): void
Moves the sheets. Without a position, they move to a new workbook.
VBA:
Move- #
delete(): void
Deletes the sheets.
VBA:
Delete- #
select(replace?: any): void
Selects the sheets.
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.
VBA:
PrintOut- #
visible: any
Whether the sheets are visible.
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
Interface Excel.Worksheet
Represents a worksheet.
- #
name: string
The sheet name (shown on the sheet tab).
VBA:
Name- #
readonly codeName: string
The code name of the sheet module.
VBA:
CodeName- #
readonly index: int
The position of the sheet in the sheet order (1-based).
VBA:
Index- #
visible: XlSheetVisibility
The visibility of the sheet (visible / hidden / hidden so that the user cannot unhide it).
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).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).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).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).VBA:
Columns- #
readonly usedRange: Range
The used cell range.
VBA:
UsedRange- #
activate(): void
Activates the sheet.
VBA:
Activate- #
select(replace?: any): void
Selects the sheet.
VBA:
Select- #
copy(before?: any, after?: any): void
Copies the sheet. Without a position, the copy is made in a new workbook.
VBA:
Copy- #
move(before?: any, after?: any): void
Moves the sheet. Without a position, it moves to a new workbook.
VBA:
Move- #
delete(): void
Deletes the sheet.
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.
VBA:
Protect- #
unprotect(password?: any): void
Removes the sheet's protection.
VBA:
Unprotect- #
readonly protectContents: boolean
Whether the contents of the sheet are protected.
VBA:
ProtectContents- #
calculate(): void
Recalculates only this sheet.
VBA:
Calculate- #
paste(destination?: any, link?: any): void
Pastes the contents of the clipboard onto the sheet.
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.
VBA:
PasteSpecial- #
readonly shapes: Shapes
The collection of shapes on the sheet.
VBA:
Shapes- #
readonly listObjects: ListObjects
The collection of tables on the sheet.
VBA:
ListObjects- #
chartObjects(index?: any): object
Returns one embedded chart, or the whole collection.
VBA:
ChartObjects- #
readonly names: Names
The collection of sheet-level defined names.
VBA:
Names- #
readonly hyperlinks: Hyperlinks
The collection of hyperlinks on the sheet.
VBA:
Hyperlinks- #
readonly comments: Comments
The collection of comments (notes) on the sheet.
VBA:
Comments- #
readonly pageSetup: PageSetup
The page setup.
VBA:
PageSetup- #
readonly autoFilter: AutoFilter
The AutoFilter settings. Nothing if there is no filter.
VBA:
AutoFilter- #
autoFilterMode: boolean
Whether the AutoFilter arrows are shown. Assigning
falseremoves the filter.VBA:
AutoFilterMode- #
readonly filterMode: boolean
Whether the sheet is in a filtered state.
VBA:
FilterMode- #
showAllData(): void
Clears the filtering and shows all rows.
VBA:
ShowAllData- #
readonly tab: object
The sheet tab (its color and so on).
VBA:
Tab- #
readonly parent: object
The parent object (usually the workbook).
VBA:
Parent- #
readonly application: Application
The Application object the sheet belongs to.
VBA:
Application- #
evaluate(name: any): cellValue
Evaluates a name or formula string relative to this sheet.
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.
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.
VBA:
ExportAsFixedFormat- #
enableCalculation: boolean
Whether this sheet takes part in automatic recalculation.
VBA:
EnableCalculation- #
standardWidth: double
The standard column width.
VBA:
StandardWidth- #
readonly next: Worksheet | Chart
The next sheet. Nothing for the last sheet.
VBA:
Next- #
readonly previous: Worksheet | Chart
The previous sheet. Nothing for the first sheet.
VBA:
Previous- #
readonly sort: Sort
The sort settings of the sheet.
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
Interface Excel.Range
Represents a cell, a row, a column, or a range of several cells.
- #
(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).- #
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).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).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).VBA:
Value2- #
formula: any
The formula in A1 style. For a cell without a formula, the value itself.
VBA:
Formula- #
formulaR1C1: any
The formula in R1C1 style.
VBA:
FormulaR1C1- #
formula2: any
The formula in A1 style, with dynamic array support.
VBA:
Formula2- #
readonly text: any
The text shown in the cell (after formatting).
VBA:
Text- #
address(rowAbsolute?: any, columnAbsolute?: any, referenceStyle?: XlReferenceStyle, external?: any, relativeTo?: any): string
Returns the reference of the range as a string (
$A$1style by default).VBA:
Address- #
readonly row: int
The row number of the first row of the range.
VBA:
Row- #
readonly column: int
The column number of the first column of the range.
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).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).VBA:
Columns- #
readonly count: int
The number of cells (or rows / columns). The generated VBA refers to
CountLarge(Countfails on ranges that exceed the Long limit, such ascellsof a whole sheet).VBA:
CountLarge- #
readonly countLarge: any
The number of cells. Can count even large ranges such as a whole sheet.
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).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).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).VBA:
Resize- #
end(direction: XlDirection): Range
Returns the cell at the end of the contiguous data region (like Ctrl+arrow key).
VBA:
End- #
readonly entireRow: Range
The entire rows that contain the range.
VBA:
EntireRow- #
readonly entireColumn: Range
The entire columns that contain the range.
VBA:
EntireColumn- #
readonly currentRegion: Range
The contiguous data region bounded by blank rows and blank columns.
VBA:
CurrentRegion- #
readonly areas: object
The collection of areas of a multiple-selection range.
VBA:
Areas- #
readonly worksheet: Worksheet
The worksheet that contains the range.
VBA:
Worksheet- #
readonly parent: object
The parent object (usually the worksheet).
VBA:
Parent- #
readonly application: Application
The Application object the range belongs to.
VBA:
Application- #
readonly font: Font
The font formatting.
VBA:
Font- #
readonly interior: Interior
The fill formatting.
VBA:
Interior- #
readonly borders: Borders
The collection of borders.
VBA:
Borders- #
numberFormat: any
The number format (format codes in English notation).
VBA:
NumberFormat- #
numberFormatLocal: any
The number format (format codes in the notation of the running environment's language).
VBA:
NumberFormatLocal- #
horizontalAlignment: any
The horizontal alignment.
VBA:
HorizontalAlignment- #
verticalAlignment: any
The vertical alignment.
VBA:
VerticalAlignment- #
wrapText: any
Whether text wraps within the cell so that all of it is shown.
VBA:
WrapText- #
mergeCells: any
Whether the range contains merged cells.
VBA:
MergeCells- #
readonly mergeArea: Range
The merged range that contains the given cell. The cell itself if it is not merged.
VBA:
MergeArea- #
merge(across?: any): void
Merges the cells.
VBA:
Merge- #
unMerge(): void
Unmerges the cells.
VBA:
UnMerge- #
columnWidth: any
The column width (in characters of the standard font).
VBA:
ColumnWidth- #
rowHeight: any
The row height (points).
VBA:
RowHeight- #
readonly height: any
The height of the range (points).
VBA:
Height- #
readonly width: any
The width of the range (points).
VBA:
Width- #
readonly left: any
The distance from the left edge of the sheet to the left edge of the range (points).
VBA:
Left- #
readonly top: any
The distance from the top edge of the sheet to the top edge of the range (points).
VBA:
TopWhether the rows or columns are hidden. Use it on entire rows or entire columns.
VBA:
Hidden- #
locked: any
Whether the cells are locked.
VBA:
Locked- #
readonly hasFormula: any
Whether the range contains formulas.
VBA:
HasFormula- #
name: any
The name given to the range (a Name object). Assigning a string defines the name.
VBA:
Name- #
readonly comment: Comment
The comment (note) attached to the cell. Nothing if there is none.
VBA:
Comment- #
readonly validation: Validation
The data validation.
VBA:
Validation- #
readonly hyperlinks: Hyperlinks
The collection of hyperlinks in the range.
VBA:
Hyperlinks- #
readonly listObject: ListObject
The table the range belongs to. Nothing outside a table.
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.
VBA:
Find- #
findNext(after?: any): Range
Finds the next cell with the same criteria as Find.
VBA:
FindNext- #
findPrevious(after?: any): Range
Finds the previous cell with the same criteria as Find.
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.
VBA:
Replace- #
copy(destination?: any): void
Copies the range. Without a destination, copies to the clipboard.
VBA:
Copy- #
cut(destination?: any): void
Cuts the range. Without a destination, cuts to the clipboard.
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).
VBA:
PasteSpecial- #
clear(): void
Clears values, formulas and formats.
VBA:
Clear- #
clearContents(): void
Clears only values and formulas (formats remain).
VBA:
ClearContents- #
clearFormats(): void
Clears only the formats.
VBA:
ClearFormats- #
clearComments(): void
Clears the comments (notes).
VBA:
ClearComments- #
delete(shift?: any): void
Deletes the cells and shifts the others to fill the gap.
VBA:
Delete- #
insert(shift?: any, copyOrigin?: any): void
Inserts blank cells and shifts the existing cells.
VBA:
Insert- #
select(): void
Selects the range.
VBA:
Select- #
activate(): void
Activates the cell.
VBA:
Activate- #
autoFit(): void
Adjusts the column width or row height to fit the contents. Use it on entire rows or entire columns.
VBA:
AutoFit- #
autoFill(destination: Range, type?: XlAutoFillType): void
Performs an AutoFill.
destinationmust include the source range.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.
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).
VBA:
Sort- #
removeDuplicates(columns?: any, header?: XlYesNoGuess): void
Removes duplicate rows. Pass an array of the column numbers to compare as
columns.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.
VBA:
SpecialCells- #
fillDown(): void
Copies the contents of the first row of the range downward.
VBA:
FillDown- #
fillRight(): void
Copies the contents of the first column of the range to the right.
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.
VBA:
TextToColumns- #
calculate(): void
Recalculates only this range.
VBA:
Calculate- #
addComment(text?: any): Comment
Adds a comment (note) to the cell.
VBA:
AddComment- #
characters(start?: any, length?: any): Characters
Returns Characters representing part of the text in the cell (for character-level formatting).
VBA:
Characters- #
borderAround(lineStyle?: any, weight?: XlBorderWeight, colorIndex?: XlColorIndex, color?: any, themeColor?: any): void
Draws a border around the outside of the range.
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).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- #
clearHyperlinks(): void
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
Interface Excel.Font
Represents character formatting (font name, size, color, and so on).
- #
name: any
The font name.
VBA:
Name- #
size: any
The font size (points).
VBA:
Size- #
bold: any
Whether the text is bold.
VBA:
Bold- #
italic: any
Whether the text is italic.
VBA:
Italic- #
underline: any
The type of underline.
VBA:
Underline- #
strikethrough: any
Whether the text has a strikethrough.
VBA:
Strikethrough- #
color: any
The text color (RGB value).
VBA:
Color- #
colorIndex: any
The text color (color palette index).
VBA:
ColorIndex- #
themeColor: any
The text color from the theme colors.
VBA:
ThemeColor- #
tintAndShade: any
Lightens or darkens the color (-1 to 1).
VBA:
TintAndShade- #
fontStyle: any
The name of the font style (such as "Bold Italic").
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
Interface Excel.Interior
Represents the fill of a cell or shape.
- #
color: any
The fill color (RGB value).
VBA:
Color- #
colorIndex: any
The fill color (color palette index).
xlColorIndexNonefor no fill.VBA:
ColorIndex- #
pattern: any
The fill pattern.
VBA:
Pattern- #
patternColor: any
The pattern color (RGB value).
VBA:
PatternColor- #
patternColorIndex: any
The pattern color (color palette index).
VBA:
PatternColorIndex- #
themeColor: any
The fill color from the theme colors.
VBA:
ThemeColor- #
tintAndShade: any
Lightens or darkens the color (-1 to 1).
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
Interface Excel.Borders
The collection of borders of a cell range (top, bottom, left, right, inside, diagonal).
- #
(index: XlBordersIndex): Border
Returns a border by position (default member).
- #
item(index: XlBordersIndex): Border
Returns a border by position.
VBA:
Item- #
readonly count: int
The number of borders.
VBA:
Count- #
color: any
The color of all borders (RGB value).
VBA:
Color- #
colorIndex: any
The color of all borders (color palette index).
VBA:
ColorIndex- #
lineStyle: any
The line style of all borders.
VBA:
LineStyle- #
weight: any
The weight of all borders.
VBA:
Weight- #
value: any
VBA:
Value- #
themeColor: any
VBA:
ThemeColor- #
tintAndShade: any
VBA:
TintAndShade- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Border
Represents a single border.
- #
color: any
The border color (RGB value).
VBA:
Color- #
colorIndex: any
The border color (color palette index).
VBA:
ColorIndex- #
lineStyle: any
The line style of the border.
xlLineStyleNonefor no border.VBA:
LineStyle- #
weight: any
The weight of the border.
VBA:
Weight- #
themeColor: any
VBA:
ThemeColor- #
tintAndShade: any
VBA:
TintAndShade- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Characters
Represents part of the text in a cell or shape.
- #
text: string
The text of the target part.
VBA:
Text- #
readonly count: int
The number of characters.
VBA:
Count- #
readonly font: Font
The font formatting of the target part.
VBA:
Font- #
insert(str: string): void
Replaces the target part with the inserted string.
VBA:
Insert- #
delete(): void
Deletes the characters of the target part.
VBA:
Delete- #
caption: string
VBA:
Caption- #
phoneticCharacters: string
VBA:
PhoneticCharacters- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Comment
Represents a cell comment (note).
- #
text(text?: any, start?: any, overwrite?: any): string
Gets or sets the text of the comment.
VBA:
TextThe author of the comment.
VBA:
Author- #
readonly shape: Shape
The shape that forms the comment's frame.
VBA:
Shape- #
visible: boolean
Whether the comment is always shown.
VBA:
Visible- #
delete(): void
Deletes the comment.
VBA:
Delete- #
next(): Comment
VBA:
Next- #
previous(): Comment
VBA:
Previous- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Comments
The collection of comments (notes) on a sheet.
Interface Excel.Hyperlinks
The collection of hyperlinks in a sheet or range.
- #
(index: any): Hyperlink
Returns a hyperlink by index (default member).
- #
item(index: any): Hyperlink
Returns a hyperlink by index.
VBA:
Item- #
readonly count: int
The number of hyperlinks.
VBA:
Count- #
add(anchor: object, address: string, subAddress?: any, screenTip?: any, textToDisplay?: any): object
Adds a hyperlink to a cell range or shape.
VBA:
Add- #
delete(): void
Deletes all hyperlinks in the collection.
VBA:
Delete- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Hyperlink
Represents a hyperlink.
- #
address: string
The address of the link target (a URL or file path).
VBA:
Address- #
subAddress: string
The location within the link target (a cell reference or bookmark).
VBA:
SubAddress- #
textToDisplay: string
The text shown in the cell.
VBA:
TextToDisplay- #
screenTip: string
The tip shown when the mouse hovers over the link.
VBA:
ScreenTip- #
readonly range: Range
The cell range the link is set on.
VBA:
Range- #
follow(newWindow?: any, addHistory?: any, extraInfo?: any, method?: any, headerInfo?: any): void
Opens the link target.
VBA:
Follow- #
delete(): void
Deletes the hyperlink.
VBA:
Delete- #
emailSubject: string
VBA:
EmailSubject- #
readonly name: string
VBA:
Name- #
readonly shape: Shape
VBA:
Shape- #
readonly type: int
VBA:
Type- #
addToFavorites(): void
VBA:
AddToFavorites- #
createNewDocument(filename: string, editNow: boolean, overwrite: boolean): void
VBA:
CreateNewDocument- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Validation
Represents the data validation of a cell range.
- #
add(type: XlDVType, alertStyle?: any, operator?: any, formula1?: any, formula2?: any): void
Adds data validation. If a rule already exists, call Delete first.
VBA:
Add- #
modify(type?: any, alertStyle?: any, operator?: any, formula1?: any, formula2?: any): void
Changes the existing data validation.
VBA:
Modify- #
delete(): void
Deletes the data validation.
VBA:
Delete- #
readonly type: int
The type of data validation (a value of XlDVType).
VBA:
Type- #
readonly formula1: string
The first value or formula of the condition.
VBA:
Formula1- #
readonly formula2: string
The second value or formula of the condition.
VBA:
Formula2- #
ignoreBlank: boolean
Whether blanks are allowed.
VBA:
IgnoreBlank- #
inCellDropdown: boolean
Whether a drop-down is shown for list validation.
VBA:
InCellDropdown- #
inputMessage: string
The text of the input message.
VBA:
InputMessage- #
errorMessage: string
The text of the error message.
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
Interface Excel.Names
The collection of defined names (named ranges).
- #
(index: any, indexLocal?: any, refersTo?: any): Name
Returns a Name by index or name (default member).
- #
item(index?: any, indexLocal?: any, refersTo?: any): Name
Returns a Name by index or name.
VBA:
Item- #
readonly count: int
The number of defined names.
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.
VBA:
Add- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Name
Represents a defined name (named range).
- #
name: string
The defined name.
VBA:
Name- #
refersTo: any
The formula the name refers to (in the form
=Sheet1!$A$1).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.
VBA:
RefersToRange- #
visible: boolean
Whether the name is shown in the Name Manager.
VBA:
Visible- #
delete(): void
Deletes the defined name.
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
Interface Excel.Windows
The collection of windows.
- #
(index: any): Window
Returns a window by index or caption (default member).
- #
item(index: any): Window
Returns a window by index or caption.
VBA:
Item- #
readonly count: int
The number of windows.
VBA:
Count- #
arrange(arrangeStyle?: XlArrangeStyle, activeWorkbook?: any, syncHorizontal?: any, syncVertical?: any): void
Arranges the windows.
VBA:
Arrange- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Window
Represents a window that shows a workbook.
- #
activate(): void
Activates the window.
VBA:
Activate- #
close(saveChanges?: any, filename?: any, routeWorkbook?: any): boolean
Closes the window.
VBA:
Close- #
caption: any
The title of the window.
VBA:
Caption- #
windowState: XlWindowState
The state of the window (maximized / minimized / normal).
VBA:
WindowState- #
visible: boolean
Whether the window is visible.
VBA:
Visible- #
freezePanes: boolean
Whether panes are frozen.
VBA:
FreezePanes- #
zoom: any
The zoom (percent).
VBA:
Zoom- #
displayGridlines: boolean
Whether gridlines are shown.
VBA:
DisplayGridlines- #
displayHeadings: boolean
Whether row and column headings are shown.
VBA:
DisplayHeadings- #
displayFormulas: boolean
Whether formulas are shown instead of values.
VBA:
DisplayFormulas- #
displayZeros: boolean
Whether zero values are shown.
VBA:
DisplayZeros- #
scrollRow: int
The number of the row shown at the top of the window.
VBA:
ScrollRow- #
scrollColumn: int
The number of the column shown at the left of the window.
VBA:
ScrollColumn- #
readonly visibleRange: Range
The cell range visible in the window.
VBA:
VisibleRange- #
readonly activeCell: Range
The active cell in the window.
VBA:
ActiveCell- #
readonly activeSheet: Worksheet | Chart
The active sheet in the window.
VBA:
ActiveSheet- #
readonly selectedSheets: Sheets
The sheets selected in the window.
VBA:
SelectedSheets- #
readonly selection: object
The object selected in the window.
VBA:
Selection- #
view: XlWindowView
The view mode (normal / page break preview / page layout).
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.
VBA:
RangeFromPoint- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.ListObjects
The collection of tables on a worksheet.
- #
(index: any): ListObject
Returns a table by index or table name (default member).
- #
item(index: any): ListObject
Returns a table by index or table name.
VBA:
Item- #
readonly count: int
The number of tables.
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.
VBA:
Add- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.ListObject
Represents a table on a worksheet.
- #
name: string
The table name.
VBA:
Name- #
readonly range: Range
The range of the whole table, including the header row and totals row.
VBA:
Range- #
readonly dataBodyRange: Range
The range of the data part. Nothing if there are no data rows.
VBA:
DataBodyRange- #
readonly headerRowRange: Range
The range of the header row.
VBA:
HeaderRowRange- #
readonly totalsRowRange: Range
The range of the totals row. Nothing if the totals row is hidden.
VBA:
TotalsRowRange- #
readonly listColumns: ListColumns
The collection of the table's columns.
VBA:
ListColumns- #
readonly listRows: ListRows
The collection of the table's rows.
VBA:
ListRows- #
showHeaders: boolean
Whether the header row is shown.
VBA:
ShowHeaders- #
showTotals: boolean
Whether the totals row is shown.
VBA:
ShowTotals- #
showAutoFilter: boolean
Whether the AutoFilter is shown.
VBA:
ShowAutoFilter- #
tableStyle: any
The style applied to the table.
VBA:
TableStyle- #
readonly autoFilter: AutoFilter
The AutoFilter of the table.
VBA:
AutoFilter- #
readonly sort: Sort
The sort settings of the table.
VBA:
Sort- #
resize(range: Range): void
Changes the range of the table.
VBA:
Resize- #
unlist(): void
Converts the table back to a normal cell range (the data remains).
VBA:
Unlist- #
delete(): void
Deletes the table together with its data.
VBA:
Delete- #
refresh(): void
Refreshes the table from the external data source.
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- #
unlink(): void
VBA:
Unlink- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.ListColumns
The collection of the table's columns.
- #
(index: any): ListColumn
Returns a column by index or column header (default member).
- #
item(index: any): ListColumn
Returns a column by index or column header.
VBA:
Item- #
readonly count: int
The number of columns.
VBA:
Count- #
add(position?: any): ListColumn
Adds a column to the table.
VBA:
Add- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.ListColumn
Represents one column of a table.
- #
name: string
The text of the column header.
VBA:
Name- #
readonly index: int
The position of the column in the table (1-based).
VBA:
Index- #
readonly range: Range
The range of the whole column, including the header.
VBA:
Range- #
readonly dataBodyRange: Range
The range of the data part of the column.
VBA:
DataBodyRange- #
readonly total: Range
The cell in the totals row.
VBA:
Total- #
totalsCalculation: XlTotalsCalculation
The calculation used in the totals row.
VBA:
TotalsCalculation- #
delete(): void
Deletes the column.
VBA:
Delete- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.ListRows
The collection of the table's rows.
- #
(index: any): ListRow
Returns a row by index (default member).
- #
item(index: any): ListRow
Returns a row by index.
VBA:
Item- #
readonly count: int
The number of data rows.
VBA:
Count- #
add(position?: any, alwaysInsert?: any): ListRow
Adds a row to the table. Without a position, adds it at the end.
VBA:
Add- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.ListRow
Represents one row of a table.
Interface Excel.Shapes
The collection of shapes on a sheet.
- #
(index: any): Shape
Returns a shape by index or name (default member).
- #
item(index: any): Shape
Returns a shape by index or name.
VBA:
Item- #
readonly count: int
The number of shapes.
VBA:
Count- #
addShape(type: Office.MsoAutoShapeType, left: float, top: float, width: float, height: float): Shape
Adds an AutoShape.
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.
VBA:
AddPicture- #
addTextbox(orientation: Office.MsoTextOrientation, left: float, top: float, width: float, height: float): Shape
Adds a text box.
VBA:
AddTextbox- #
addLine(beginX: float, beginY: float, endX: float, endY: float): Shape
Adds a line.
VBA:
AddLine- #
addChart2(style?: any, xlChartType?: any, left?: any, top?: any, width?: any, height?: any, newLayout?: any): Shape
Adds a chart.
VBA:
AddChart2- #
addFormControl(type: XlFormControl, left: int, top: int, width: int, height: int): Shape
Adds a form control (such as a button).
VBA:
AddFormControl- #
selectAll(): void
Selects all shapes.
VBA:
SelectAll- #
range(index: any): object
Returns a ShapeRange that groups several shapes.
VBA:
Range- #
readonly application: Application
VBA:
Application- #
readonly parent: Worksheet | Chart
VBA:
Parent
Interface Excel.Shape
Represents a shape on a sheet (AutoShape, picture, chart, and so on).
- #
name: string
The name of the shape.
VBA:
Name- #
left: float
The position of the left edge (points).
VBA:
Left- #
top: float
The position of the top edge (points).
VBA:
Top- #
width: float
The width (points).
VBA:
Width- #
height: float
The height (points).
VBA:
Height- #
visible: Office.MsoTriState
Whether the shape is visible.
VBA:
Visible- #
readonly type: Office.MsoShapeType
The type of the shape.
VBA:
Type- #
readonly topLeftCell: Range
The cell under the top-left corner of the shape.
VBA:
TopLeftCell- #
readonly bottomRightCell: Range
The cell under the bottom-right corner of the shape.
VBA:
BottomRightCell- #
placement: XlPlacement
How the shape follows when cells are moved or resized.
VBA:
Placement- #
onAction: string
The name of the macro run when the shape is clicked.
VBA:
OnAction- #
readonly textFrame: object
The text frame in the shape.
VBA:
TextFrame- #
readonly chart: Chart
The chart contained in the shape.
VBA:
Chart- #
delete(): void
Deletes the shape.
VBA:
Delete- #
select(replace?: any): void
Selects the shape.
VBA:
Select- #
copy(): void
Copies the shape to the clipboard.
VBA:
Copy- #
duplicate(): Shape
Duplicates the shape.
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- #
readonly hyperlink: Hyperlink
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
Interface Excel.ChartObjects
The collection of embedded charts on a sheet.
- #
(index: any): object
Returns an embedded chart by index or name (default member). The return value is of type Object.
- #
item(index: any): object
Returns an embedded chart by index or name.
VBA:
Item- #
readonly count: int
The number of embedded charts.
VBA:
Count- #
add(left: double, top: double, width: double, height: double): ChartObject
Adds an embedded chart at the given position and size (points).
VBA:
Add- #
delete(): void
Deletes all embedded charts in the collection.
VBA:
Delete- #
select(replace?: any): void
VBA:
Select- #
readonly application: Application
VBA:
Application- #
readonly parent: Worksheet | Chart
VBA:
Parent
Interface Excel.ChartObject
Represents the container of a chart embedded in a sheet.
- #
name: string
The name of the embedded chart.
VBA:
Name- #
readonly chart: Chart
The chart inside it.
VBA:
Chart- #
left: double
The position of the left edge (points).
VBA:
Left- #
top: double
The position of the top edge (points).
VBA:
Top- #
width: double
The width (points).
VBA:
Width- #
height: double
The height (points).
VBA:
Height- #
visible: boolean
Whether it is visible.
VBA:
Visible- #
activate(): void
Activates the embedded chart.
VBA:
Activate- #
delete(): void
Deletes the embedded chart.
VBA:
Delete- #
select(replace?: any): void
Selects the embedded chart.
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
Interface Excel.Chart
Represents a chart (a chart sheet or the contents of an embedded chart).
- #
chartType: XlChartType
The chart type.
VBA:
ChartType- #
setSourceData(source: Range, plotBy?: any): void
Sets the source data range of the chart.
VBA:
SetSourceData- #
hasTitle: boolean
Whether the chart title is shown.
VBA:
HasTitle- #
readonly chartTitle: object
The chart title.
VBA:
ChartTitle- #
hasLegend: boolean
Whether the legend is shown.
VBA:
HasLegend- #
readonly legend: object
The legend.
VBA:
Legend- #
seriesCollection(index?: any): object
Returns one data series, or the whole collection.
VBA:
SeriesCollection- #
axes(type?: any, axisGroup?: XlAxisGroup): object
Returns one axis, or the whole collection.
VBA:
Axes- #
export(filename: string, filterName?: any, interactive?: any): boolean
Exports the chart as an image file.
VBA:
Export- #
delete(): void
Deletes the chart.
VBA:
Delete- #
name: string
The name of the chart.
VBA:
Name- #
plotBy: XlRowCol
Whether series are taken from rows or columns.
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
Interface Excel.PageSetup
Represents the page setup for printing.
- #
orientation: XlPageOrientation
The paper orientation.
VBA:
Orientation- #
paperSize: XlPaperSize
The paper size.
VBA:
PaperSize- #
printArea: string
The print area (a string in A1 style). An empty string for the whole sheet.
VBA:
PrintArea- #
printTitleRows: string
The rows printed repeatedly at the top of each page.
VBA:
PrintTitleRows- #
printTitleColumns: string
The columns printed repeatedly at the left of each page.
VBA:
PrintTitleColumns- #
zoom: any
The scaling (percent). Setting it to
falsemakes the FitToPages settings take effect.VBA:
Zoom- #
fitToPagesWide: any
The number of pages to fit horizontally.
VBA:
FitToPagesWide- #
fitToPagesTall: any
The number of pages to fit vertically.
VBA:
FitToPagesTall- #
leftMargin: double
The left margin (points).
VBA:
LeftMargin- #
rightMargin: double
The right margin (points).
VBA:
RightMargin- #
topMargin: double
The top margin (points).
VBA:
TopMargin- #
bottomMargin: double
The bottom margin (points).
VBA:
BottomMargin- #
centerHorizontally: boolean
Whether the sheet is centered horizontally on the page.
VBA:
CenterHorizontally- #
centerVertically: boolean
Whether the sheet is centered vertically on the page.
VBA:
CenterVertically- #
centerHeader: string
The text of the center section of the header.
VBA:
CenterHeaderThe text of the center section of the footer.
VBA:
CenterFooter- #
headerMargin: double
VBA:
HeaderMarginVBA:
FooterMargin- #
leftHeader: string
VBA:
LeftHeader- #
rightHeader: string
VBA:
RightHeaderVBA:
LeftFooterVBA:
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:
PrintErrorsVBA:
OddAndEvenPagesHeaderFooterVBA:
DifferentFirstPageHeaderFooterVBA:
ScaleWithDocHeaderFooterVBA:
AlignMarginsHeaderFooter- #
printQuality(index?: any): any
VBA:
PrintQuality- #
readonly application: Application
VBA:
Application- #
readonly parent: Worksheet | Chart
VBA:
Parent
Interface Excel.AutoFilter
Represents the AutoFilter of a worksheet or table.
- #
readonly range: Range
The range the filter is applied to.
VBA:
Range- #
readonly filters: object
The collection of filter criteria for each column.
VBA:
Filters- #
readonly filterMode: boolean
Whether it is in a filtered state.
VBA:
FilterMode- #
readonly sort: Sort
The sort settings of the filter range.
VBA:
Sort- #
applyFilter(): void
Reapplies the filter with the current criteria.
VBA:
ApplyFilter- #
showAllData(): void
Clears the filtering and shows all rows.
VBA:
ShowAllData- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.Sort
Represents the sort settings of a sheet, table or AutoFilter.
- #
readonly sortFields: SortFields
The collection of sort keys.
VBA:
SortFields- #
setRange(rng: Range): void
Sets the range to sort.
VBA:
SetRange- #
header: XlYesNoGuess
Whether the first row is treated as a header.
VBA:
Header- #
matchCase: boolean
Whether the sort is case-sensitive.
VBA:
MatchCase- #
orientation: XlSortOrientation
The sort orientation (by rows / by columns).
VBA:
Orientation- #
apply(): void
Sorts with the configured settings.
VBA:
Apply- #
sortMethod: XlSortMethod
VBA:
SortMethod- #
readonly rng: Range
VBA:
Rng- #
readonly application: Application
VBA:
Application- #
readonly parent: object
VBA:
Parent
Interface Excel.SortFields
The collection of sort keys.
- #
(index: any): SortField
Returns a sort key by index (default member).
- #
item(index: any): SortField
Returns a sort key by index.
VBA:
Item- #
readonly count: int
The number of sort keys.
VBA:
Count- #
add(key: Range, sortOn?: any, order?: any, customOrder?: any, dataOption?: any): SortField
Adds a sort key.
VBA:
Add- #
clear(): void
Deletes all sort keys.
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
Interface Excel.SortField
Represents the settings of a single sort key.
- #
readonly key: Range
The cell range used as the key.
VBA:
Key- #
sortOn: XlSortOn
What to sort on (values / cell color / font color / icon).
VBA:
SortOn- #
order: XlSortOrder
The sort order.
VBA:
Order- #
customOrder: any
The order given by a custom list.
VBA:
CustomOrder- #
dataOption: XlSortDataOption
How text that looks like numbers is treated.
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
Interface Excel.FormatConditions
The collection of conditional formats of a cell range (each element is of type Object).
- #
(index: any): object
Returns a conditional format by index (default member).
- #
item(index: any): object
Returns a conditional format by index.
VBA:
Item- #
readonly count: int
The number of conditional formats.
VBA:
Count- #
add(type: XlFormatConditionType, operator?: any, formula1?: any, formula2?: any): object
Adds a conditional format.
VBA:
Add- #
delete(): void
Deletes all conditional formats of the range.
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
Interface Excel.WorksheetFunction
A container for worksheet functions callable from VBA. Raises a run-time error on failure.
- #
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.
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.
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.
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.
VBA:
CountA- #
countIf(arg1: Range, arg2: any): double
Returns the number of cells that match the criteria.
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.
VBA:
CountIfs- #
sumIf(arg1: Range, arg2: any, arg3?: any): double
Returns the sum of the cells that match the criteria.
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.
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.
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.
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.
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.
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.
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.
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).
VBA:
XLookup- #
round(arg1: double, arg2: double): double
Rounds to the given number of digits.
VBA:
Round- #
roundUp(arg1: double, arg2: double): double
Rounds up to the given number of digits (away from 0).
VBA:
RoundUp- #
roundDown(arg1: double, arg2: double): double
Rounds down to the given number of digits (toward 0).
VBA:
RoundDown- #
trim(arg1: string): string
Removes leading and trailing spaces and collapses runs of spaces between words into one.
VBA:
Trim- #
text(arg1: any, arg2: string): string
Converts a value to text according to a number format.
VBA:
Text- #
transpose(arg1: any): any
Swaps the rows and columns of an array.
VBA:
Transpose- #
ifError(arg1: cellValue, arg2: any): any
Returns the second argument if the first is an error value; otherwise returns the first argument.
VBA:
IfError- #
large(arg1: any, arg2: double): double
Returns the k-th largest value.
VBA:
Large- #
small(arg1: any, arg2: double): double
Returns the k-th smallest value.
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.
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.
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.
VBA:
Var- #
rank(arg1: double, arg2: Range, arg3?: any): double
Returns the rank of a number within a range.
VBA:
Rank- #
floor(arg1: double, arg2: double): double
Returns the value rounded toward 0 to a multiple of the significance.
VBA:
Floor- #
ceiling(arg1: double, arg2: double): double
Returns the value rounded away from 0 to a multiple of the significance.
VBA:
Ceiling- #
power(arg1: double, arg2: double): double
Returns the power.
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.
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.
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).
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).
VBA:
EDate- #
networkDays(arg1: any, arg2: any, arg3?: any): double
Returns the number of working days between two dates.
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).
VBA:
WorkDay- #
weekNum(arg1: any, arg2?: any): double
Returns the week number of the date within its year.
VBA:
WeekNum- #
find(arg1: string, arg2: string, arg3?: any): double
Returns the position where the search text first appears in the text (case-sensitive).
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).
VBA:
Search- #
substitute(arg1: string, arg2: string, arg3: string, arg4?: any): string
Replaces the given substring in the text with another string.
VBA:
Substitute- #
rept(arg1: string, arg2: double): string
Repeats the text the given number of times.
VBA:
Rept- #
proper(arg1: string): string
Capitalizes the first letter of each word and lowercases the rest.
VBA:
Proper- #
clean(arg1: string): string
Removes nonprintable control characters.
VBA:
Clean- #
asc(arg1: string): string
Converts full-width alphanumeric and kana characters to half-width.
VBA:
Asc- #
dbcs(arg1: string): string
Converts half-width alphanumeric and kana characters to full-width.
VBA:
Dbcs- #
phonetic(arg1: Range): string
Returns the phonetic (furigana) text of the cell.
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.
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.
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
trueif all arguments are true.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
trueif any argument is true.VBA:
Or- #
isNumber(arg1: cellValue): boolean
Returns whether the value is a number.
VBA:
IsNumber- #
isText(arg1: cellValue): boolean
Returns whether the value is text.
VBA:
IsText- #
isError(arg1: cellValue): boolean
Returns whether the value is an error value.
VBA:
IsError- #
isNA(arg1: cellValue): boolean
Returns whether the value is #N/A.
VBA:
IsNA- #
pi(): double
Returns pi.
VBA:
Pi- #
radians(arg1: double): double
Converts degrees to radians.
VBA:
Radians- #
degrees(arg1: double): double
Converts radians to degrees.
VBA:
Degrees- #
ln(arg1: double): double
Returns the natural logarithm.
VBA:
Ln- #
log(arg1: double, arg2?: any): double
Returns the logarithm to the given base (10 if the base is omitted).
VBA:
Log- #
log10(arg1: double): double
Returns the base-10 logarithm.
VBA:
Log10- #
fact(arg1: double): double
Returns the factorial.
VBA:
Fact- #
combin(arg1: double, arg2: double): double
Returns the number of combinations.
VBA:
Combin- #
quotient(arg1: any, arg2: any): double
Returns the integer part of a division.
VBA:
Quotient- #
mRound(arg1: any, arg2: any): double
Rounds to a multiple of the given value.
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
Enum Excel.Constants
General-purpose constants that belong to no specific enumeration (xlNone / xlCenter / xlAutomatic and so on).
- #
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
Enum Excel.XlDirection
Specifies the direction of movement or search.
Enum Excel.XlCalculation
Specifies the calculation mode.
Enum Excel.XlCalculationState
Represents the progress of the calculation.
Enum Excel.XlCalculationInterruptKey
Specifies the keys that can interrupt calculation.
Enum Excel.XlLookAt
Specifies whether to match the whole cell contents or any part of them.
Enum Excel.XlFindLookIn
Specifies what to search (formulas / values / comments).
Enum Excel.XlSearchOrder
Specifies whether the search proceeds by rows or by columns.
Enum Excel.XlSearchDirection
Specifies whether to search for the next or the previous match.
Enum Excel.XlPasteType
Specifies what to paste with Paste Special.
- #
xlPasteAll = -4104
- #
xlPasteAllExceptBorders = 7
- #
xlPasteAllMergingConditionalFormats = 14
- #
xlPasteAllUsingSourceTheme = 13
- #
xlPasteColumnWidths = 8
- #
xlPasteComments = -4144
- #
xlPasteFormats = -4122
- #
xlPasteFormulas = -4123
- #
xlPasteFormulasAndNumberFormats = 11
- #
xlPasteValidation = 6
- #
xlPasteValues = -4163
- #
xlPasteValuesAndNumberFormats = 12
Enum Excel.XlPasteSpecialOperation
Specifies the operation performed with the destination values when pasting.
Enum Excel.XlSheetVisibility
Specifies the visibility of a sheet.
Enum Excel.XlSheetType
Specifies the type of a sheet.
Enum Excel.XlFileFormat
Specifies the file format used when saving a workbook.
- #
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
Enum Excel.XlCellType
Specifies the kind of cells returned by SpecialCells.
Enum Excel.XlSpecialCellsValue
Specifies the kinds of values when SpecialCells returns constant or formula cells (can be combined by adding).
Enum Excel.XlHAlign
Specifies the horizontal alignment.
Enum Excel.XlVAlign
Specifies the vertical alignment.
Enum Excel.XlBordersIndex
Specifies the position of a border.
Enum Excel.XlLineStyle
Specifies the line style of a border.
Enum Excel.XlBorderWeight
Specifies the weight of a border.
Enum Excel.XlSortOrder
Specifies the sort order (ascending / descending).
Enum Excel.XlSortOn
Specifies what to sort on.
Enum Excel.XlSortOrientation
Specifies the sort orientation.
Enum Excel.XlSortMethod
Specifies how Japanese or Chinese text is sorted.
Enum Excel.XlSortDataOption
Specifies how text that looks like numbers is treated when sorting.
Enum Excel.XlYesNoGuess
Specifies whether the first row is a header.
Enum Excel.XlDeleteShiftDirection
Specifies the direction cells shift after deleting cells.
Enum Excel.XlInsertShiftDirection
Specifies the direction existing cells shift when inserting cells.
Enum Excel.XlInsertFormatOrigin
Specifies which side the formatting of inserted cells is copied from.
Enum Excel.XlEnableCancelKey
Specifies how the interrupt keys are handled while a macro runs.
Enum Excel.XlMousePointer
Specifies the shape of the mouse pointer.
Enum Excel.XlWindowState
Specifies the state of a window.
Enum Excel.XlWindowView
Specifies the view mode of a window.
Enum Excel.XlWindowType
Represents the type of a window.
Enum Excel.XlArrangeStyle
Specifies how windows are arranged.
Enum Excel.XlAutoFillType
Specifies the AutoFill method.
Enum Excel.XlAutoFilterOperator
Specifies the operator that joins two AutoFilter criteria, or the type of filter.
Enum Excel.XlPattern
Specifies the fill pattern.
- #
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
Enum Excel.XlColorIndex
Represents the special color palette index values (automatic / none).
Enum Excel.XlUnderlineStyle
Specifies the type of underline.
Enum Excel.XlReferenceStyle
Specifies the cell reference style.
Enum Excel.XlReferenceType
Specifies the kind of reference (absolute / relative) when converting formulas.
Enum Excel.XlSaveAsAccessMode
Specifies the sharing mode used when saving a workbook.
Enum Excel.XlSaveAction
Specifies whether changes are saved when closing a workbook.
Enum Excel.XlFileAccess
Specifies the access mode of a workbook.
Enum Excel.XlUpdateLinks
Specifies how links are updated when opening a workbook.
Enum Excel.XlCorruptLoad
Specifies how a workbook is repaired when opened.
Enum Excel.XlLinkType
Specifies the type of link.
Enum Excel.XlRunAutoMacro
Specifies the kind of automatic macro to run.
Enum Excel.XlRangeValueDataType
Specifies the format of the data returned by Range.Value.
Enum Excel.XlCutCopyMode
Represents whether Excel is in Cut mode or Copy mode.
Enum Excel.XlFixedFormatType
Specifies the fixed-layout format to export (PDF / XPS).
Enum Excel.XlFixedFormatQuality
Specifies the quality of PDF / XPS output.
Enum Excel.XlPageOrientation
Specifies the paper orientation.
Enum Excel.XlPaperSize
Specifies the paper size.
- #
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
Enum Excel.XlOrder
Specifies the page order when the output spans several pages.
Enum Excel.XlPrintLocation
Specifies where comments are printed.
Enum Excel.XlPrintErrors
Specifies how error values are printed.
Enum Excel.XlListObjectSourceType
Specifies the type of a table's data source.
Enum Excel.XlTotalsCalculation
Specifies the calculation used in a table's totals row.
Enum Excel.XlDVType
Specifies the type of data validation.
Enum Excel.XlDVAlertStyle
Specifies the style of the data validation error message.
Enum Excel.XlFormatConditionType
Specifies the type of conditional format.
Enum Excel.XlFormatConditionOperator
Specifies the comparison operator for conditional formats and data validation.
Enum Excel.XlTextParsingType
Specifies how text is split into columns (delimited / fixed width).
Enum Excel.XlTextQualifier
Specifies the text qualifier (quote character).
Enum Excel.XlColumnDataType
Specifies the data format of a column when importing text.
Enum Excel.XlConsolidationFunction
Specifies the summary function used for subtotals and consolidation.
Enum Excel.XlSummaryRow
Specifies whether summary rows go above or below the data.
Enum Excel.XlFilterAction
Specifies whether an advanced filter shows the results in place or copies them to another location.
Enum Excel.XlFillWith
Specifies what is copied when filling across sheets.
Enum Excel.XlEnableSelection
Specifies which cells can be selected on a protected sheet.
Enum Excel.XlPlacement
Specifies how a shape follows when cells are moved or resized.
Enum Excel.XlFormControl
Specifies the type of form control.
Enum Excel.XlPictureAppearance
Specifies the appearance (as shown on screen / as printed) when copying as a picture.
Enum Excel.XlCopyPictureFormat
Specifies the image format when copying as a picture.
Enum Excel.XlChartType
Specifies the chart type (commonly used ones only).
- #
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
Enum Excel.XlChartLocation
Specifies where a chart is moved.
Enum Excel.XlRowCol
Specifies whether data series are taken from rows or columns.
Enum Excel.XlAxisType
Specifies the type of a chart axis.
Enum Excel.XlAxisGroup
Specifies the axis group of a chart (primary / secondary).
Enum Excel.XlLegendPosition
Specifies the position of the legend.
Enum Excel.XlDisplayBlanksAs
Specifies how blank cells are plotted in a chart.
Enum Excel.XlCVError
Error numbers that correspond to cell error values. Pass one to CVErr to make an error value.
Enum Excel.XlThemeColor
Specifies a theme color.
- #
xlThemeColorAccent1 = 5
- #
xlThemeColorAccent2 = 6
- #
xlThemeColorAccent3 = 7
- #
xlThemeColorAccent4 = 8
- #
xlThemeColorAccent5 = 9
- #
xlThemeColorAccent6 = 10
- #
xlThemeColorDark1 = 1
- #
xlThemeColorDark2 = 3
- #
xlThemeColorFollowedHyperlink = 12
- #
xlThemeColorHyperlink = 11
- #
xlThemeColorLight1 = 2
- #
xlThemeColorLight2 = 4
Enum Excel.XlThemeFont
Specifies a theme font.
Enum Excel.XlApplicationInternational
Specifies the country/region setting retrieved with Application.International.
- #
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
Global application
const application: Excel.Application
VBA: Application
The Excel application itself.
Global thisWorkbook
const thisWorkbook: Excel.Workbook
VBA: ThisWorkbook
The workbook that contains the running macro.
Global activeWorkbook
const activeWorkbook: Excel.Workbook
VBA: ActiveWorkbook
The active workbook. Nothing if no workbook is open.
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.
Global activeCell
const activeCell: Excel.Range
VBA: ActiveCell
The active cell.
Global activeWindow
const activeWindow: Excel.Window
VBA: ActiveWindow
The active window.
Global selection
const selection: object
VBA: Selection
The currently selected object. Of type Object.
Global workbooks
const workbooks: Excel.Workbooks
VBA: Workbooks
The collection of all open workbooks.
Global worksheets
const worksheets: Excel.Sheets<Excel.Worksheet>
VBA: Worksheets
All worksheets in the active workbook.
Global sheets
const sheets: Excel.Sheets
VBA: Sheets
All sheets in the active workbook (including chart sheets).
Global names
const names: Excel.Names
VBA: Names
The collection of defined names in the active workbook.
Global windows
const windows: Excel.Windows
VBA: Windows
The collection of all windows.
Global worksheetFunction
const worksheetFunction: Excel.WorksheetFunction
VBA: WorksheetFunction
An object for calling worksheet functions from VBA.
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).
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).
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).
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).
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.
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.
Function evaluate
function evaluate(name: any): cellValue
VBA: Evaluate
Evaluates a name or formula string to an object or a value.
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.