質問編集履歴
1
文言を修正しました。
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
|
|