Visual Basic for Applications Reference

RSet Statement

See Also Example Specifics

Right aligns a string within a string variable.



The RSet statement syntax has these parts:

Part Description
stringvar Required. Name of string variable.
string Required. String expression to be right-aligned within stringvar.


If stringvar is longer than string, RSet replaces any leftover characters in stringvar with spaces, back to its beginning.

*Note* RSet can't be used with user-defined types.