Space Function

Returns a string consisting of a specified number of spaces.

Space (length)

Parameters

Length  -  (Input, expression, Required)

Specifies the number of the spaces to return within the string.

Return Value

A string value containing the specified number of spaces.

Examples

Space (5)

Returns “     “

Space (“5.1”)

Returns “     “

Space (0)

Returns “”

Space (-1)

Returns Error

Space (Null)

Returns Error

Space (Error)

Returns Error

TIP:

Functions are specifically for use in the Macro Editor. Refer to Microsoft's official VB and JScript documentation for scripting equivalents.

See Also

Functions | Asc function | Chr function | CSet function | Format function | InStr function | LCase function | Left function | Len function | LSet function | LTrim function | Mid function | Replace function | Right function | RSet function | RTrim function | Space function | String function | TCase function | Trim function | UBound function | UCase function


© 2004-2021 looksoftware. All rights reserved.