Range.Replace Method (Excel)
![]() | Contribute to this content Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation. |
Returns a Boolean indicating characters in cells within the specified range. Using this method doesn?t change either the selection or the active cell.
expression .Replace(What, Replacement, LookAt, SearchOrder, MatchCase, MatchByte, SearchFormat, ReplaceFormat)
expression A variable that represents a Range object.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
What | Required | Variant | The string you want Microsoft Excel to search for. |
Replacement | Required | Variant | The replacement string. |
LookAt | Optional | Variant | Can be one of the following XlLookAt constants: xlWhole or xlPart. |
SearchOrder | Optional | Variant | Can be one of the following XlSearchOrder constants: xlByRows or xlByColumns. |
MatchCase | Optional | Variant | True to make the search case sensitive. |
MatchByte | Optional | Variant | You can use this argument only if you?ve selected or installed double-byte language support in Microsoft Excel. True to have double-byte characters match only double-byte characters. False to have double-byte characters match their single-byte equivalents. |
SearchFormat | Optional | Variant | The search format for the method. |
ReplaceFormat | Optional | Variant | The replace format for the method. |
Return Value
Boolean
The settings for LookAt, SearchOrder, MatchCase, and MatchByte are saved each time you use this method. If you don?t specify values for these arguments the next time you call the method, the saved values are used. Setting these arguments changes the settings in the Find dialog box, and changing the settings in the Find dialog box changes the saved values that are used if you omit the arguments. To avoid problems, set these arguments explicitly each time you use this method.
'메모' 카테고리의 다른 글
엑셀 페이지마다 반복할 행 프린트하기...펌 (0) | 2016.07.08 |
---|---|
ascii table...펌 (0) | 2016.07.07 |
text <-> blob in mdb via vba...펌 (0) | 2016.07.01 |
BLOB data access and modify...펌 (0) | 2016.06.29 |
가벽 바닥고정은 양면테이프와 실리콘, 천정은 못이나 스크루로 고정...펌 (0) | 2016.06.29 |