Space function

Category: String / Text

Summary

Spaces string.

Syntax

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

Example

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

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/space-function

Back to Functions