Be the first user to complete this post
|
Add to List |
VBA-Excel: String Functions – Space()
Description:
The Space() function returns a string consisting a specified number of spaces.
Format:
Space (intNumberOfSpaces)
Arguments:
- intNumberOfSpaces
- Mandatory
- Type: Numeric
- Number of spaces you want in the string.
Function FnSpace() intNos = 25 MsgBox "Perfect example of" & Space(intNos) & "Space" End Function
![Space()](/static/media/excel/2013/05/Space.jpg)
Also Read About Other String() Functions
INSTR() | InstrREV() | LCase()
Also Read:
- VBA-Excel: Date-Time Functions – Date(), Now() and Time()
- VBA-Excel : 3D-Ranges – FillAcrossSheets Method
- VBA-Excel: Date-Time Functions – DateValue()
- VBA-Excel: Cells Ranges Offset - Active Cell
- VBA-Excel: String Functions – Trim()