<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	【簡単】VBAでIEの全要素のデータを取得する方法～VBA(マクロ)でIE操作 へのコメント	</title>
	<atom:link href="https://nujonoa.com/vba-ie-output-alltag/feed/" rel="self" type="application/rss+xml" />
	<link>https://nujonoa.com/vba-ie-output-alltag/</link>
	<description>人生に役立つデータ集</description>
	<lastBuildDate>Wed, 10 Jun 2020 03:34:07 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>
		nujonoa より		</title>
		<link>https://nujonoa.com/vba-ie-output-alltag/#comment-71</link>

		<dc:creator><![CDATA[nujonoa]]></dc:creator>
		<pubDate>Fri, 31 Jan 2020 03:58:46 +0000</pubDate>
		<guid isPermaLink="false">http://nujonoa.com/?p=714#comment-71</guid>

					<description><![CDATA[&lt;a href=&quot;https://nujonoa.com/vba-ie-output-alltag/#comment-70&quot;&gt;加山&lt;/a&gt; への返信。

加山さん

コメントありがとうございます。

既に開いているページでしたら、
ページを起動する部分を↓のプログラムに入れ替えてもらえればいけるかなとおもいます。

開いているページの名前を参照する必要がありますので、
○○○○をページ名に入れ替えていただければと思います。



&#039;*****↓ここまでは以前と一緒***************************************************
&#039;IEの起動
    Dim objIE As Object &#039;IEを格納する変数（オブジェクト型）
    Dim sh As Object    &#039;起動中のShellWindow一式を格納する変数
    Dim win As Object   &#039;ShellWindowを格納する変数

    Dim document_title As String  &#039;ドキュメントタイトルの一時格納変数
    &#039;起動中のShellWindow一式を変数winsに格納
    Set sh = CreateObject(&quot;Shell.Application&quot;)
    &#039;ShellWindowから1つずつ取得して処理
    For Each win In sh.Windows
        &#039;ドキュメントタイトル取得失敗を無視（処理継続）
        On Error Resume Next
        document_title = &quot;&quot;
        document_title = win.DOCUMENT.Title
        
        Debug.Print document_title
        
        On Error GoTo 0
        &#039;タイトルバーに○○○○が含まれるかチェック
        If InStr(document_title, &quot;○○○○&quot;) &gt; 0 Then
            &#039;変数ieに取得したwinを格納
            Set objIE = win
            &#039;ループを抜ける
            Exit For
        End If
    Next


&#039;*****↑ここまでは以前と一緒***************************************************]]></description>
			<content:encoded><![CDATA[<p><a href="https://nujonoa.com/vba-ie-output-alltag/#comment-70">加山</a> への返信。</p>
<p>加山さん</p>
<p>コメントありがとうございます。</p>
<p>既に開いているページでしたら、<br />
ページを起動する部分を↓のプログラムに入れ替えてもらえればいけるかなとおもいます。</p>
<p>開いているページの名前を参照する必要がありますので、<br />
○○○○をページ名に入れ替えていただければと思います。</p>
<p>'*****↓ここまでは以前と一緒***************************************************<br />
'IEの起動<br />
    Dim objIE As Object 'IEを格納する変数（オブジェクト型）<br />
    Dim sh As Object    '起動中のShellWindow一式を格納する変数<br />
    Dim win As Object   'ShellWindowを格納する変数</p>
<p>    Dim document_title As String  'ドキュメントタイトルの一時格納変数<br />
    '起動中のShellWindow一式を変数winsに格納<br />
    Set sh = CreateObject("Shell.Application")<br />
    'ShellWindowから1つずつ取得して処理<br />
    For Each win In sh.Windows<br />
        'ドキュメントタイトル取得失敗を無視（処理継続）<br />
        On Error Resume Next<br />
        document_title = ""<br />
        document_title = win.DOCUMENT.Title</p>
<p>        Debug.Print document_title</p>
<p>        On Error GoTo 0<br />
        'タイトルバーに○○○○が含まれるかチェック<br />
        If InStr(document_title, "○○○○") > 0 Then<br />
            '変数ieに取得したwinを格納<br />
            Set objIE = win<br />
            'ループを抜ける<br />
            Exit For<br />
        End If<br />
    Next</p>
<p>'*****↑ここまでは以前と一緒***************************************************</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		加山 より		</title>
		<link>https://nujonoa.com/vba-ie-output-alltag/#comment-70</link>

		<dc:creator><![CDATA[加山]]></dc:creator>
		<pubDate>Thu, 30 Jan 2020 09:55:37 +0000</pubDate>
		<guid isPermaLink="false">http://nujonoa.com/?p=714#comment-70</guid>

					<description><![CDATA[質問です。
上記マクロを
&quot;IEでページを開いてそれに対し全要素のデータを取得する&quot;
ではなく
&quot;開いているIEページの全要素のデータを取得する&quot;
ことは可能でしょうか。

可能であれば、方法を是非教えて頂きたいです。]]></description>
			<content:encoded><![CDATA[<p>質問です。<br />
上記マクロを<br />
"IEでページを開いてそれに対し全要素のデータを取得する"<br />
ではなく<br />
"開いているIEページの全要素のデータを取得する"<br />
ことは可能でしょうか。</p>
<p>可能であれば、方法を是非教えて頂きたいです。</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
