TaskId

Syntax

%TaskId()%

Description

Returns the unique ID of the currently running task. Each running Automate task has a unique number assigned to it at runtime to differentiate it from other tasks running with the same name. TaskID is a read-only property of the running task.

Parameters

(no parameters)

Example


Sub Main
' Display the task ID of the currently running task
MsgBox TaskId()

End
Sub


See also

IsLeapYear, FirstDateOfDayInMonth, FirstDateOfDayInQuarter, FirstDateOfDayInYear, LastDateOfDayInMonth, LastDateOfDayInQuarter, LastDateOfWeek, LastDayOfQuarter