Skip to content

Utilities

These are some simple utility functions that allow you to get the current user and version of the XlBlocks Add-In among other things.


Utility Functions

XBUtils_SetErrorOutput

Toggle error output behavior, useful when debugging

=XBUtils_SetErrorOutput(printErrors)
Parameter Type Description
printErrors Boolean Boolean, will print error output to screen when TRUE
Returns

A boolean

XBUtils_GetVersion

Get the XlBlocks version string

=XBUtils_GetVersion()
Returns

A string

XBUtils_GetUsername

Get the username of the current user

=XBUtils_GetUsername([includeDomain])
Parameter Type Description
includeDomain Boolean Optional Include the domain name with the username
Returns

A string

XBUtils_GetMachineName

Get the name of the current machine

=XBUtils_GetMachineName()
Returns

A string