teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

追記

2020/11/20 05:10

投稿

radames1000
radames1000

スコア1925

answer CHANGED
@@ -1,4 +1,8 @@
1
1
  xlValueではなくxlValuesにしてみてください
2
2
  ```VBA
3
3
  Set rng = st.Cells.Find("xxx", , xlValues, xlWhole)
4
- ```
4
+ ```
5
+
6
+ [Range.Find メソッド (Excel)](https://docs.microsoft.com/ja-jp/office/vba/api/excel.range.find)
7
+
8
+ > LookIn 省略可能 Variant 使用できるのは、XlFindLookIn 定数: xlFormulas、xlValues、xlComments あるいは xlCommentsThreaded のいずれかです。