Visual Basic for Applications Reference

Space Function

See Also Example Specifics

Returns a Variant (String) consisting of the specified number of spaces.

Syntax

Space(number)

The required numberargument is the number of spaces you want in the string.

Remarks

The Space function is useful for formatting output and clearing data in fixed-length strings.