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

質問編集履歴

1

文言を修正しました。

2020/06/05 02:48

投稿

hirokin92
hirokin92

スコア3

title CHANGED
@@ -1,1 +1,1 @@
1
- VBA <p>タグの中にあるテキスト取得
1
+ VBA <p>タグの中にあるテキスト取得について
body CHANGED
@@ -12,7 +12,7 @@
12
12
  コードの一部ですが、以下打ち込んだコードです。
13
13
 
14
14
  For Each test In webIE.document.getElementByTagName("p")
15
- If test.innerText = "テスト" Then
15
+ If test.innerText = InStr(test, "テスト") Then
16
16
  Cells(cnt, 1).Value = test.innerText
17
17
  End If
18
18