Excel Commands
Create Workbook |
Open Workbook |
Save Workbook |
Close Workbook |
Get Cell |
Set Cell |
Select Cell |
Get Cell Format |
Set Cell Format |
Create Workbook
| Using Standard HTML Color Names for Background: (bgcolor=) | |||
| bgcolor=red | ![]() |
bgcolor=maroon | ![]() |
| bgcolor=lime | ![]() |
bgcolor=green | ![]() |
| bgcolor=cyan bgcolor=aqua |
![]() |
bgcolor=teal | ![]() |
| bgcolor=blue | ![]() |
bgcolor=navy | ![]() |
| bgcolor=magenta bgcolor=pink bgcolor=fuchsia |
![]() |
bgcolor=yellow | ![]() |
| bgcolor=olive | ![]() |
bgcolor=purple | ![]() |
| bgcolor=silver | ![]() |
bgcolor=gray | ![]() |
| bgcolor=black | ![]() |
bgcolor=white | ![]() |
| Using Standard HTML Color Names for Font: (color=) | |||
| color=blue | ![]() |
||
| bgcolor=yellow, color=red Note: all the other colors listed above are also available |
![]() |
||
| Using Border: (border=) | |||
| border=1 | ![]() |
||
| border=2 Note: Other border settings are not currently supported. |
![]() |
||
| Using Alignment: (align=) | |||
| align=left | ![]() |
||
| align=center | ![]() |
||
| align=right Note: Vertical alignment settings are not currently supported. |
![]() |
||
| Using Column Width: (width=) | |||
| width=200 | ![]() |
||
| width=50 Note: Vertical height settings are not currently supported. |
![]() |
||
| Using Font: (font=, font-size= and font-style=) | |||
| font=Verdana font-size=20 | ![]() |
||
| font=Times-New-Roman font-size=16 font-style=italic+bold+underlined Note: Spaces inside of a font name should be replaced with "-" or "_" (due to lack of any HTML syntax enforcement in clear text) |
![]() |
||
| =8+9 |
| =8 + 9.5 |
| =A1+B2 |
| =$A$1 + $B$2 |
| =A1 + B2 / A1 |
| =A1 * B2 + 100 |
| =A1 & B2 |
| =A1 < B2 |
| =A1 = B2 |
| = A1 * B2 * C3 + 123.456 |
| =A1 * 0.05 |
Open Workbook
| *Tip: All Excel actions require that the Open Workbook command is used first. This allows vTask to access the correct spreadsheet. |
Save Workbook
Close Workbook
Get Cell

|
abc 100 def 200 ghi 300 |
Set Cell

Select Cell



Get Cell Format
| Format | Description | Return Example (using sample spreadsheet above) | |
| Data Format | Returns the specified formatting for data (such as numbers). For example, "#.00" would be numeric, and "@" would be text. These are the same as the format specifications inside of Excel, as shown in the screen image below. | #,##0.00 | |
The "Custom" option shows what data formats are returned by vTask:
![]() |
|||
| Is Bold | 1 (TRUE) of the font is Bold, else 0 (FALSE) | 1 | |
| Is Italic | 1 (TRUE) of the font is Italic, else 0 (FALSE) | 1 | |
| Is Underlined | 1 (TRUE) of the font is Underlined, else 0 (FALSE) | 1 | |
| Font Name | The face name of the font | Tahoma | |
| Font Size | The point size of the font | 16 | |
| Font Color | The HTML color of the font (RGB) | #0000FF | |
| Background Color | The fill color of the cell (RGB) | #FFFF99 | |
| Border Weight | The thickness of the border line around the cell | medium | |
| Border Line Style | The type of line of the border line around the cell | dash dot | |
| Horizontal Alignment | The position of the data within the cell | center | |
| Vertical Alignment | The position of the data within the cell | bottom | |
| Column Width | The horizontal size of the cell, measured in pixels. NOTE: This value may not be exact, due to Excel's use of typeface points rather than pixels | 120 | |
| Row Height | The vertical size of the cell, measured in pixels | 64 | |
| Total Rows | Returns the count of rows in a sheet. This is the most distant vertical cell with data. The "Cell or Range" parameter is not used. | 1 | |
| Total Columns | Returns the count of columns in a sheet. This is the most distant horizontal cell with data. The "Cell or Range" parameter is not used. | 1 | |
Set Cell Format
| Format | Description | Sample Format Text | Example |
| Cell Formatting | Changes the data display for a cell, such as decimal places. This is the same as the "Format Cells - Number" command inside of Excel (see screenshot below) | 0.0 mm/dd/yyyy #,##0_);[Red](#,##0) @ (for text) |
"#,###.0" will show: ![]() "dddd, mmmm dd, yyyy" will show: ![]() |
![]() |
|||
| Bold | Changes font to bold | 1=Bold, 0=Not Bold | ![]() |
| Italic | Changes font to italic | 1=Italic, 0=Not Italic | ![]() |
| Underline | Changes font to underlined | 1=Underlined, 0=Not Underlined | ![]() |
| Font Name | Changes the font typeface | Same as Font selection in Excel, such as "Verdana" | ![]() |
| Font Size | Changes font point size | Same as point size in Font selection, such as "18" | ![]() |
| Font Color | Changes font color. Use standard HTML colors (RGB) |
#FF0000 = red #808080 = gray |
![]() |
| Background Color | Changes cell color. Use standard HTML colors (RGB) |
#f8f800 = red #f0f0f0 = light gray |
![]() |
| Horizontal Alignment | Placement of text inside a cell | left, center, right | ![]() |
| Vertical Alignment | Placement of text inside a cell | top, middle, bottom | ![]() |
| Column Width | Size of a column | Number of pixels for new width | ![]() |
| Row Height | Height of a row | Number of pixels | ![]() |
| Border | Changes border around cell | none, thin, medium, thick | ![]() |