Returns a String containing an expression formatted according to instructions contained in a format expression.
Syntax:
StrLibObject.StrFormat(Expression As Variant, sFormat As String)
The StrFormat Method (StrLib Object) syntax has these parts:
| Part |
Description |
| StrLibObject |
An object expression that evaluates to a StrLib object. |
| Expression |
A valid expression (a date value or a number value). |
| sFormat |
A user-defined format expression for a number or a date. |
Remarks:
Use this function to retrieve dates and numbers with a custom format.