Returns a string in which a specified substring has been replaced with another substring a specified number of times.
Syntax:
StrLibObject.StrReplace(sExpression As String, sFind As String, sReplace As String)
The StrReplace Method (StrLib Object) syntax has these parts:
| Part |
Description |
| StrLibObject |
An object expression that evaluates to a StrLib object. |
| sExpression |
(Required). String expression containing substring to replace. |
| sFind |
(Required). Substring being searched for. |
| sReplace |
(Required). Replacement substring. |
Remarks:
The return value of the Replace function is a string, with substitutions made.