Skip to main content

ReplaceData

Properties to make search and replace.

Type​

Object

Properties​

NameTypeDescription
LookAtXlLookAtSpecifies whether the whole search text or any part of the search text is matched.
MatchCasebooleanCase sensitive or not. The default value is "false".
ReplaceAllbooleanSpecifies if all the found data will be replaced or not. The default value is "true".
ReplacementstringThe replacement string.
SearchDirectionXlSearchDirectionRange search direction - next match or previous match.
SearchOrderXlSearchOrderRange search order - by rows or by columns.
Whatstring | RegExp | undefinedThe data to search for, or a regular expression to match the cell text. When a RegExp is passed, the MatchCase and Wildcards parameters are ignored (control case sensitivity with the "i" flag instead). Add the "g" flag to replace every occurrence inside a cell - without it only the first occurrence is replaced, while a string always replaces every occurrence.
WildcardsbooleanSpecifies whether to interpret the search text as a wildcard pattern: "" matches any character sequence, "?" matches any single character, use "~" / "~?" to find the literal "*" / "?" characters. The default value is "false".