FindReplaceInObject Method

Finds all occurrences of a string in the specified object and replaces them with another string.

Syntax

object.FindReplaceInObject pdispObject, lFlags, bstrFindString, bstrReplacementString, pbSuccess

Properties

The FindReplaceInObject method syntax has these parts:

Part

Description

object

An object expression that evaluates to an object in the Applies To list.

pdispObject

Object. Object to be searched.

lFlags

Long. Search modifiers.  

Valid entries:
0-15 in any of the following combinations:
0 - No modifiers
1 - Match Case
2 - Whole Word Only
4 - Data Source Only
8 - Include Scripts

bstrFindString

String. String to be searched for.

bstrReplacementString

String. String to be substituted for all occurrences of bstrFindString.

pbSuccess

Boolean. Returns True if the operation succeeded, False otherwise.

 

Example

Applies To