<?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・GAS・Pythonで仕事を楽しく効率化 へのコメント	</title>
	<atom:link href="https://officevba.info/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://officevba.info</link>
	<description>仕事の役に立つVBA・GAS・Pythonのコードを紹介していきます。</description>
	<lastBuildDate>Sat, 31 Jan 2026 12:36:55 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9</generator>
	<item>
		<title>
		okumasahito より Outlookの予定表を登録するExcelVBAコード2（終日対応） へのコメント		</title>
		<link>https://officevba.info/outlookschedule2/#comment-36</link>

		<dc:creator><![CDATA[okumasahito]]></dc:creator>
		<pubDate>Sat, 31 Jan 2026 12:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://officevba.info/?p=1767#comment-36</guid>

					<description><![CDATA[&lt;a href=&quot;https://officevba.info/outlookschedule2/#comment-35&quot;&gt;ねこ&lt;/a&gt; への返信。

コメントいただいていたのに通知が届かず、確認が遅くなりました。
すみません。
今私はOutlookを使う環境ではないため、新たにコードを作成して動作確認することができなくなってしまいました。
またOutlookを使う際にコードを検討してみます。]]></description>
			<content:encoded><![CDATA[<p><a href="https://officevba.info/outlookschedule2/#comment-35">ねこ</a> への返信。</p>
<p>コメントいただいていたのに通知が届かず、確認が遅くなりました。<br />
すみません。<br />
今私はOutlookを使う環境ではないため、新たにコードを作成して動作確認することができなくなってしまいました。<br />
またOutlookを使う際にコードを検討してみます。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		ねこ より Outlookの予定表を登録するExcelVBAコード2（終日対応） へのコメント		</title>
		<link>https://officevba.info/outlookschedule2/#comment-35</link>

		<dc:creator><![CDATA[ねこ]]></dc:creator>
		<pubDate>Mon, 12 May 2025 07:40:55 +0000</pubDate>
		<guid isPermaLink="false">http://officevba.info/?p=1767#comment-35</guid>

					<description><![CDATA[はじめまして
とても勉強になります

予定の公開方法(予定あり、外出中など)、非公開設定方法、の2点も教えていただけますでしょうか？

自分なりに調べてみましたが分かりませんでした。]]></description>
			<content:encoded><![CDATA[<p>はじめまして<br />
とても勉強になります</p>
<p>予定の公開方法(予定あり、外出中など)、非公開設定方法、の2点も教えていただけますでしょうか？</p>
<p>自分なりに調べてみましたが分かりませんでした。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		okumasahito より MicrosoftEdgeのIEモードをVBAで操作する へのコメント		</title>
		<link>https://officevba.info/edgeiemodeoperation/#comment-34</link>

		<dc:creator><![CDATA[okumasahito]]></dc:creator>
		<pubDate>Tue, 21 Mar 2023 13:34:39 +0000</pubDate>
		<guid isPermaLink="false">https://officevba.info/?p=2370#comment-34</guid>

					<description><![CDATA[&lt;a href=&quot;https://officevba.info/edgeiemodeoperation/#comment-33&quot;&gt;nyarou&lt;/a&gt; への返信。

ご連絡ありがとうございます。
お力になれず申し訳ありません。
WindowsAPIについて私も勉強してみます。]]></description>
			<content:encoded><![CDATA[<p><a href="https://officevba.info/edgeiemodeoperation/#comment-33">nyarou</a> への返信。</p>
<p>ご連絡ありがとうございます。<br />
お力になれず申し訳ありません。<br />
WindowsAPIについて私も勉強してみます。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		nyarou より MicrosoftEdgeのIEモードをVBAで操作する へのコメント		</title>
		<link>https://officevba.info/edgeiemodeoperation/#comment-33</link>

		<dc:creator><![CDATA[nyarou]]></dc:creator>
		<pubDate>Tue, 21 Mar 2023 13:13:38 +0000</pubDate>
		<guid isPermaLink="false">https://officevba.info/?p=2370#comment-33</guid>

					<description><![CDATA[&lt;a href=&quot;https://officevba.info/edgeiemodeoperation/#comment-32&quot;&gt;okumasahito&lt;/a&gt; への返信。

お返事と参考URLの紹介ありがとうございます。

edge操作のプロシージャの部分は、edgeを立ち上げるコードは不要なのでしょうか？このコードのままだと、動かなそうでした。難しそうでしたら、あとは調べてみますので、大丈夫です。]]></description>
			<content:encoded><![CDATA[<p><a href="https://officevba.info/edgeiemodeoperation/#comment-32">okumasahito</a> への返信。</p>
<p>お返事と参考URLの紹介ありがとうございます。</p>
<p>edge操作のプロシージャの部分は、edgeを立ち上げるコードは不要なのでしょうか？このコードのままだと、動かなそうでした。難しそうでしたら、あとは調べてみますので、大丈夫です。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		okumasahito より MicrosoftEdgeのIEモードをVBAで操作する へのコメント		</title>
		<link>https://officevba.info/edgeiemodeoperation/#comment-32</link>

		<dc:creator><![CDATA[okumasahito]]></dc:creator>
		<pubDate>Sun, 19 Mar 2023 14:54:18 +0000</pubDate>
		<guid isPermaLink="false">https://officevba.info/?p=2370#comment-32</guid>

					<description><![CDATA[&lt;a href=&quot;https://officevba.info/edgeiemodeoperation/#comment-30&quot;&gt;nyarou&lt;/a&gt; への返信。

追記情報：以下サイトに64bit Excel対応の記事がありました。
https://qiita.com/ymd65536-ms/items/320f889e9fc35fe375f1

こちらのコードで動くかどうか確認をお願いできますでしょうか。
私の環境ではエラー91が出て動かないのですが、もしかしたら？と期待しております。

Option Explicit

Public Declare PtrSafe Sub Sleep Lib &quot;kernel32&quot; (ByVal ms As LongPtr)
Private Declare PtrSafe Function GetTopWindow Lib &quot;user32&quot; (ByVal hwnd As LongPtr) As LongPtr
Private Declare PtrSafe Function GetParent Lib &quot;user32&quot; (ByVal hwnd As LongPtr) As LongPtr
Private Declare PtrSafe Function GetWindowThreadProcessId Lib &quot;user32&quot; (ByVal hwnd As LongPtr, lpdwProcessId As LongPtr) As LongPtr
Private Declare PtrSafe Function RegisterWindowMessage Lib &quot;user32&quot; Alias &quot;RegisterWindowMessageA&quot; (ByVal lpString As String) As LongPtr
Private Declare PtrSafe Function SendMessageTimeout Lib &quot;user32&quot; Alias &quot;SendMessageTimeoutA&quot; (ByVal hwnd As LongPtr, ByVal msg As LongPtr, ByVal wParam As LongPtr, ByVal lParam As LongPtr, ByVal fuFlags As LongPtr, ByVal uTimeout As LongPtr, lpdwResult As LongPtr) As LongPtr
Private Declare PtrSafe Function IIDFromString Lib &quot;ole32&quot; (lpsz As Any, lpiid As Any) As Long
Private Declare PtrSafe Function ObjectFromLresult Lib &quot;oleacc&quot; (ByVal lResult As LongPtr, riid As Any, ByVal wParam As LongPtr, ppvObject As Object) As LongPtr
Private Declare PtrSafe Function EnumChildWindows Lib &quot;user32&quot; (ByVal hWndParent As LongPtr, ByVal lpEnumFunc As LongPtr, ByVal lParam As LongPtr) As LongPtr
Private Declare PtrSafe Function GetClassName Lib &quot;user32&quot; Alias &quot;GetClassNameA&quot; (ByVal hwnd As LongPtr, ByVal lpClassName As String, ByVal nMaxCount As LongPtr) As LongPtr
Private Declare PtrSafe Function GetNextWindow Lib &quot;user32&quot; Alias &quot;GetWindow&quot; (ByVal hwnd As LongPtr, ByVal wFlag As LongPtr) As LongPtr

Private Const GW_HWNDNEXT = &amp;H2
Private hIES  As LongPtr

Public Function GetWindow(Title As String) As Object
  
  Dim con       As Object
  Dim items     As Object
  Dim HtmlDoc   As Object
  Dim hwnd      As LongPtr: hwnd = 0
  Dim pid       As LongPtr: pid = 0
  Dim buf       As String * 255
  Dim ClassName As String

  Const ProcessName = &quot;msedge.exe&quot;
   
  Set con = CreateObject(&quot;WbemScripting.SWbemLocator&quot;).ConnectServer
  hwnd = GetTopWindow(0)
  
    
  Do
    GetClassName hwnd, buf, Len(buf)
    ClassName = Left(buf, InStr(buf, vbNullChar) - 1)
    
    If InStr(ClassName, &quot;Chrome_WidgetWin_&quot;) &gt; 0 Then
      
      &#039;ウィンドウハンドルからプロセスIDを取得し、Edgeのウィンドウかどうかを判別する
      GetWindowThreadProcessId hwnd, pid
      Set items = con.ExecQuery(&quot;Select ProcessId From Win32_Process Where (ProcessId = &#039;&quot; &amp; pid &amp; &quot;&#039;) And (Name = &#039;&quot; &amp; ProcessName &amp; &quot;&#039;)&quot;)
      If items.Count &gt; 0 Then
        &#039;Edgeの子ウィンドウ列挙
        
        EnumChildWindows hwnd, AddressOf EnumChildProcIES, 0
        If hIES &lt;&gt; 0 Then
          Set HtmlDoc = GetHTMLDocumentFromIES(hIES)
          If HtmlDoc Is Nothing Then
          Else
            If InStr(HtmlDoc.Title, Title) &gt; 0 Then
              Set GetWindow = HtmlDoc
              Exit Do
            End If
          End If
        End If
      End If
    End If
    hwnd = GetNextWindow(hwnd, GW_HWNDNEXT)
  Loop While hwnd &lt;&gt; 0

End Function


Private Function EnumChildProcIES(ByVal hwnd As LongPtr, ByVal lParam As LongPtr) As LongPtr
  Dim buf As String * 255
  Dim ClassName As String
    
  GetClassName hwnd, buf, Len(buf)
  ClassName = Left(buf, InStr(buf, vbNullChar) - 1)
  If ClassName = &quot;Internet Explorer_Server&quot; Then
    hIES = hwnd
    EnumChildProcIES = False
    Exit Function
  End If
  EnumChildProcIES = True
End Function


Private Function GetHTMLDocumentFromIES(ByVal hwnd As LongPtr) As Object
  Dim msg As LongPtr, res As LongPtr
  Dim iid(0 To 3) As LongPtr
  Dim ret As Object, obj As Object
  Const SMTO_ABORTIFHUNG = &amp;H2
  Const IID_IHTMLDocument2 = &quot;{332c4425-26cb-11d0-b483-00c04fd90119}&quot;
   
  Set ret = Nothing &#039;初期化
  msg = RegisterWindowMessage(&quot;WM_HTML_GETOBJECT&quot;)
  SendMessageTimeout hwnd, msg, 0, 0, SMTO_ABORTIFHUNG, 1000, res
  If res Then
    IIDFromString StrPtr(IID_IHTMLDocument2), iid(0)
    If ObjectFromLresult(res, iid(0), 0, obj) = 0 Then Set ret = obj
  End If
  Set GetHTMLDocumentFromIES = ret
End Function

Sub edge操作()

    Dim IeObj As Object
    IeObj.getElementsByName(&quot;q&quot;)(0).Value = &quot;VBA・GAS・Pythonで業務を楽しく効率化&quot; &#039;検索バーに文字を入力

End Sub]]></description>
			<content:encoded><![CDATA[<p><a href="https://officevba.info/edgeiemodeoperation/#comment-30">nyarou</a> への返信。</p>
<p>追記情報：以下サイトに64bit Excel対応の記事がありました。<br />
<a href="https://qiita.com/ymd65536-ms/items/320f889e9fc35fe375f1" rel="nofollow ugc">https://qiita.com/ymd65536-ms/items/320f889e9fc35fe375f1</a></p>
<p>こちらのコードで動くかどうか確認をお願いできますでしょうか。<br />
私の環境ではエラー91が出て動かないのですが、もしかしたら？と期待しております。</p>
<p>Option Explicit</p>
<p>Public Declare PtrSafe Sub Sleep Lib &#8220;kernel32&#8221; (ByVal ms As LongPtr)<br />
Private Declare PtrSafe Function GetTopWindow Lib &#8220;user32&#8221; (ByVal hwnd As LongPtr) As LongPtr<br />
Private Declare PtrSafe Function GetParent Lib &#8220;user32&#8221; (ByVal hwnd As LongPtr) As LongPtr<br />
Private Declare PtrSafe Function GetWindowThreadProcessId Lib &#8220;user32&#8221; (ByVal hwnd As LongPtr, lpdwProcessId As LongPtr) As LongPtr<br />
Private Declare PtrSafe Function RegisterWindowMessage Lib &#8220;user32&#8221; Alias &#8220;RegisterWindowMessageA&#8221; (ByVal lpString As String) As LongPtr<br />
Private Declare PtrSafe Function SendMessageTimeout Lib &#8220;user32&#8221; Alias &#8220;SendMessageTimeoutA&#8221; (ByVal hwnd As LongPtr, ByVal msg As LongPtr, ByVal wParam As LongPtr, ByVal lParam As LongPtr, ByVal fuFlags As LongPtr, ByVal uTimeout As LongPtr, lpdwResult As LongPtr) As LongPtr<br />
Private Declare PtrSafe Function IIDFromString Lib &#8220;ole32&#8221; (lpsz As Any, lpiid As Any) As Long<br />
Private Declare PtrSafe Function ObjectFromLresult Lib &#8220;oleacc&#8221; (ByVal lResult As LongPtr, riid As Any, ByVal wParam As LongPtr, ppvObject As Object) As LongPtr<br />
Private Declare PtrSafe Function EnumChildWindows Lib &#8220;user32&#8221; (ByVal hWndParent As LongPtr, ByVal lpEnumFunc As LongPtr, ByVal lParam As LongPtr) As LongPtr<br />
Private Declare PtrSafe Function GetClassName Lib &#8220;user32&#8221; Alias &#8220;GetClassNameA&#8221; (ByVal hwnd As LongPtr, ByVal lpClassName As String, ByVal nMaxCount As LongPtr) As LongPtr<br />
Private Declare PtrSafe Function GetNextWindow Lib &#8220;user32&#8221; Alias &#8220;GetWindow&#8221; (ByVal hwnd As LongPtr, ByVal wFlag As LongPtr) As LongPtr</p>
<p>Private Const GW_HWNDNEXT = &#038;H2<br />
Private hIES  As LongPtr</p>
<p>Public Function GetWindow(Title As String) As Object</p>
<p>  Dim con       As Object<br />
  Dim items     As Object<br />
  Dim HtmlDoc   As Object<br />
  Dim hwnd      As LongPtr: hwnd = 0<br />
  Dim pid       As LongPtr: pid = 0<br />
  Dim buf       As String * 255<br />
  Dim ClassName As String</p>
<p>  Const ProcessName = &#8220;msedge.exe&#8221;</p>
<p>  Set con = CreateObject(&#8220;WbemScripting.SWbemLocator&#8221;).ConnectServer<br />
  hwnd = GetTopWindow(0)</p>
<p>  Do<br />
    GetClassName hwnd, buf, Len(buf)<br />
    ClassName = Left(buf, InStr(buf, vbNullChar) &#8211; 1)</p>
<p>    If InStr(ClassName, &#8220;Chrome_WidgetWin_&#8221;) > 0 Then</p>
<p>      &#8216;ウィンドウハンドルからプロセスIDを取得し、Edgeのウィンドウかどうかを判別する<br />
      GetWindowThreadProcessId hwnd, pid<br />
      Set items = con.ExecQuery(&#8220;Select ProcessId From Win32_Process Where (ProcessId = &#8216;&#8221; &#038; pid &#038; &#8220;&#8216;) And (Name = &#8216;&#8221; &#038; ProcessName &#038; &#8220;&#8216;)&#8221;)<br />
      If items.Count > 0 Then<br />
        &#8216;Edgeの子ウィンドウ列挙</p>
<p>        EnumChildWindows hwnd, AddressOf EnumChildProcIES, 0<br />
        If hIES <> 0 Then<br />
          Set HtmlDoc = GetHTMLDocumentFromIES(hIES)<br />
          If HtmlDoc Is Nothing Then<br />
          Else<br />
            If InStr(HtmlDoc.Title, Title) > 0 Then<br />
              Set GetWindow = HtmlDoc<br />
              Exit Do<br />
            End If<br />
          End If<br />
        End If<br />
      End If<br />
    End If<br />
    hwnd = GetNextWindow(hwnd, GW_HWNDNEXT)<br />
  Loop While hwnd <> 0</p>
<p>End Function</p>
<p>Private Function EnumChildProcIES(ByVal hwnd As LongPtr, ByVal lParam As LongPtr) As LongPtr<br />
  Dim buf As String * 255<br />
  Dim ClassName As String</p>
<p>  GetClassName hwnd, buf, Len(buf)<br />
  ClassName = Left(buf, InStr(buf, vbNullChar) &#8211; 1)<br />
  If ClassName = &#8220;Internet Explorer_Server&#8221; Then<br />
    hIES = hwnd<br />
    EnumChildProcIES = False<br />
    Exit Function<br />
  End If<br />
  EnumChildProcIES = True<br />
End Function</p>
<p>Private Function GetHTMLDocumentFromIES(ByVal hwnd As LongPtr) As Object<br />
  Dim msg As LongPtr, res As LongPtr<br />
  Dim iid(0 To 3) As LongPtr<br />
  Dim ret As Object, obj As Object<br />
  Const SMTO_ABORTIFHUNG = &#038;H2<br />
  Const IID_IHTMLDocument2 = &#8220;{332c4425-26cb-11d0-b483-00c04fd90119}&#8221;</p>
<p>  Set ret = Nothing &#8216;初期化<br />
  msg = RegisterWindowMessage(&#8220;WM_HTML_GETOBJECT&#8221;)<br />
  SendMessageTimeout hwnd, msg, 0, 0, SMTO_ABORTIFHUNG, 1000, res<br />
  If res Then<br />
    IIDFromString StrPtr(IID_IHTMLDocument2), iid(0)<br />
    If ObjectFromLresult(res, iid(0), 0, obj) = 0 Then Set ret = obj<br />
  End If<br />
  Set GetHTMLDocumentFromIES = ret<br />
End Function</p>
<p>Sub edge操作()</p>
<p>    Dim IeObj As Object<br />
    IeObj.getElementsByName(&#8220;q&#8221;)(0).Value = &#8220;VBA・GAS・Pythonで業務を楽しく効率化&#8221; &#8216;検索バーに文字を入力</p>
<p>End Sub</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		okumasahito より MicrosoftEdgeのIEモードをVBAで操作する へのコメント		</title>
		<link>https://officevba.info/edgeiemodeoperation/#comment-31</link>

		<dc:creator><![CDATA[okumasahito]]></dc:creator>
		<pubDate>Sun, 19 Mar 2023 14:37:12 +0000</pubDate>
		<guid isPermaLink="false">https://officevba.info/?p=2370#comment-31</guid>

					<description><![CDATA[&lt;a href=&quot;https://officevba.info/edgeiemodeoperation/#comment-30&quot;&gt;nyarou&lt;/a&gt; への返信。

ご確認ありがとうございます。
それではおそらく64bit版Excelの手順でWindowsApi対応しないといけなそうですね。

関数の変更については以下のサイトが参考になりそうでした。
https://vbabeginner.net/howto-use-win32-api/
以下のテキストファイルに変換後の記載方法も記載されているので、user32のAPIは修正できると思われます。
https://vbabeginner.net/data/Win32API_PtrSafe.TXT

問題は以下3つのAPIだと思いますが、こちらに関しては情報がなく私もわかりませんでした。
Private Declare Function IIDFromString Lib &quot;ole32&quot; (lpsz As Any, lpiid As Any) As Long
Private Declare Function ObjectFromLresult Lib &quot;oleacc&quot; (ByVal lResult As Long, riid As Any, ByVal wParam As Long, ppvObject As Object) As Long
Private Declare PtrSafe Function IUnknown_QueryService Lib &quot;shlwapi.dll&quot; _
    (ByVal punk As IUnknown, guidService As GUID, riid As GUID, ppvOut As IAccessible) _
        As Long
私も他のサイトの記載を引用して作ったコードなので、詳細が把握てきておらずお役に立てなくて申し訳ありません。
私も探ってみますがかなり難易度が高い気がしており、解決できる自信がないです。]]></description>
			<content:encoded><![CDATA[<p><a href="https://officevba.info/edgeiemodeoperation/#comment-30">nyarou</a> への返信。</p>
<p>ご確認ありがとうございます。<br />
それではおそらく64bit版Excelの手順でWindowsApi対応しないといけなそうですね。</p>
<p>関数の変更については以下のサイトが参考になりそうでした。<br />
<a href="https://vbabeginner.net/howto-use-win32-api/" rel="nofollow ugc">https://vbabeginner.net/howto-use-win32-api/</a><br />
以下のテキストファイルに変換後の記載方法も記載されているので、user32のAPIは修正できると思われます。<br />
<a href="https://vbabeginner.net/data/Win32API_PtrSafe.TXT" rel="nofollow ugc">https://vbabeginner.net/data/Win32API_PtrSafe.TXT</a></p>
<p>問題は以下3つのAPIだと思いますが、こちらに関しては情報がなく私もわかりませんでした。<br />
Private Declare Function IIDFromString Lib &#8220;ole32&#8221; (lpsz As Any, lpiid As Any) As Long<br />
Private Declare Function ObjectFromLresult Lib &#8220;oleacc&#8221; (ByVal lResult As Long, riid As Any, ByVal wParam As Long, ppvObject As Object) As Long<br />
Private Declare PtrSafe Function IUnknown_QueryService Lib &#8220;shlwapi.dll&#8221; _<br />
    (ByVal punk As IUnknown, guidService As GUID, riid As GUID, ppvOut As IAccessible) _<br />
        As Long<br />
私も他のサイトの記載を引用して作ったコードなので、詳細が把握てきておらずお役に立てなくて申し訳ありません。<br />
私も探ってみますがかなり難易度が高い気がしており、解決できる自信がないです。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		nyarou より MicrosoftEdgeのIEモードをVBAで操作する へのコメント		</title>
		<link>https://officevba.info/edgeiemodeoperation/#comment-30</link>

		<dc:creator><![CDATA[nyarou]]></dc:creator>
		<pubDate>Sun, 19 Mar 2023 13:22:55 +0000</pubDate>
		<guid isPermaLink="false">https://officevba.info/?p=2370#comment-30</guid>

					<description><![CDATA[&lt;a href=&quot;https://officevba.info/edgeiemodeoperation/#comment-29&quot;&gt;okumasahito&lt;/a&gt; への返信。

お返事ありがとうございます。

IEモードの切り替え自体は、記事のコード（キーボードイベント）により問題無く動いており、視覚でも動作確認できております。念のため、ご指摘の通りに修正して実行してみましたが、同じ箇所でエラーになってしまいました。]]></description>
			<content:encoded><![CDATA[<p><a href="https://officevba.info/edgeiemodeoperation/#comment-29">okumasahito</a> への返信。</p>
<p>お返事ありがとうございます。</p>
<p>IEモードの切り替え自体は、記事のコード（キーボードイベント）により問題無く動いており、視覚でも動作確認できております。念のため、ご指摘の通りに修正して実行してみましたが、同じ箇所でエラーになってしまいました。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		okumasahito より MicrosoftEdgeのIEモードをVBAで操作する へのコメント		</title>
		<link>https://officevba.info/edgeiemodeoperation/#comment-29</link>

		<dc:creator><![CDATA[okumasahito]]></dc:creator>
		<pubDate>Sun, 19 Mar 2023 00:59:11 +0000</pubDate>
		<guid isPermaLink="false">https://officevba.info/?p=2370#comment-29</guid>

					<description><![CDATA[&lt;a href=&quot;https://officevba.info/edgeiemodeoperation/#comment-28&quot;&gt;nyarou&lt;/a&gt; への返信。

コメントありがとうございます。

申し訳ありません。
正直64bit版のExcelは使ったことがなく、正直この部分が原因だと
どのように修正すればよいかわからないです。

ただ、原因は別のところなのかな？と思いまして…。
ブラウザはIEモードにきちんと切り替わっておりますでしょうか？
（アドレスバーの左にIEのアイコンが表示されているかどうかで確認ができると思います。）

今私のPCで動作確認してみたら記事作成時からブラウザのバージョンアップで
IEモードへの変更がうまくいかないようです。

そのため、検索文字を入力する段階でDOMを取得できておらず同じエラー91が出ました。
解決方法としては以下の手順をお試しいただけますでしょうか。
①プロシージャの「Edge起動」を以下2行にしてIEモードへ変更するステップの削除
CreateObject(&quot;Shell.Application&quot;).ShellExecute &quot;microsoft-edge:https://www.google.co.jp/&quot;
Sleep 3000
この2行のあとをすべてコメントアウトもしくは削除
②Edgeの「設定」→「既定のブラウザ」→「InternetExplorerの互換性」の欄で
InternetExplorerモード（IEモード）でのサイトの再読み込みを許可：許可
InternetExplorerモードページにhttps://www.google.co.jp/を追加

この状況で再度実行していただき、エラーがどのように生じるか
ご確認いただけると嬉しいです。]]></description>
			<content:encoded><![CDATA[<p><a href="https://officevba.info/edgeiemodeoperation/#comment-28">nyarou</a> への返信。</p>
<p>コメントありがとうございます。</p>
<p>申し訳ありません。<br />
正直64bit版のExcelは使ったことがなく、正直この部分が原因だと<br />
どのように修正すればよいかわからないです。</p>
<p>ただ、原因は別のところなのかな？と思いまして…。<br />
ブラウザはIEモードにきちんと切り替わっておりますでしょうか？<br />
（アドレスバーの左にIEのアイコンが表示されているかどうかで確認ができると思います。）</p>
<p>今私のPCで動作確認してみたら記事作成時からブラウザのバージョンアップで<br />
IEモードへの変更がうまくいかないようです。</p>
<p>そのため、検索文字を入力する段階でDOMを取得できておらず同じエラー91が出ました。<br />
解決方法としては以下の手順をお試しいただけますでしょうか。<br />
①プロシージャの「Edge起動」を以下2行にしてIEモードへ変更するステップの削除<br />
CreateObject(&#8220;Shell.Application&#8221;).ShellExecute &#8220;microsoft-edge:<a href="https://www.google.co.jp/" rel="nofollow ugc">https://www.google.co.jp/</a>&#8221;<br />
Sleep 3000<br />
この2行のあとをすべてコメントアウトもしくは削除<br />
②Edgeの「設定」→「既定のブラウザ」→「InternetExplorerの互換性」の欄で<br />
InternetExplorerモード（IEモード）でのサイトの再読み込みを許可：許可<br />
InternetExplorerモードページにhttps://www.google.co.jp/を追加</p>
<p>この状況で再度実行していただき、エラーがどのように生じるか<br />
ご確認いただけると嬉しいです。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		nyarou より MicrosoftEdgeのIEモードをVBAで操作する へのコメント		</title>
		<link>https://officevba.info/edgeiemodeoperation/#comment-28</link>

		<dc:creator><![CDATA[nyarou]]></dc:creator>
		<pubDate>Sat, 18 Mar 2023 14:28:55 +0000</pubDate>
		<guid isPermaLink="false">https://officevba.info/?p=2370#comment-28</guid>

					<description><![CDATA[はじめまして。EdgeのIEモードをVBA操作したいと考えており、こちらの記事を参考にさせて頂いております。わかればご教授願いたいのですが、64bit版のエクセルで動かすコードはわかりますでしょうか？こちらの記事のコードは32bit版用だと思われるのですが、64bit版用として現在試しているのが、次の2点です。

①&quot;Long&quot;を&quot;LongPtr&quot;に書き換えた。
②&quot;Private Declare Function&quot;の箇所で、&quot;Declare&quot;と&quot;Function&quot;の間に&quot;PtrSafe&quot;を付け加えた。

Edgeを開き、IEモードで開くところまでは動いたのですが、どうしてもgoogle検索の検索ボックスにキーワード挿入する箇所（IeEdge.getElementsByName(&quot;q&quot;)(0).Value = &quot;VBA・GAS・Pythonで業務を楽しく効率化&quot;）で「オブジェクト型の変数は設定されていません (エラー 91)」というエラーとなってしまいます。考えられる原因がもしわかるようでしたらご教授して頂きたいです。]]></description>
			<content:encoded><![CDATA[<p>はじめまして。EdgeのIEモードをVBA操作したいと考えており、こちらの記事を参考にさせて頂いております。わかればご教授願いたいのですが、64bit版のエクセルで動かすコードはわかりますでしょうか？こちらの記事のコードは32bit版用だと思われるのですが、64bit版用として現在試しているのが、次の2点です。</p>
<p>①&#8221;Long&#8221;を&#8221;LongPtr&#8221;に書き換えた。<br />
②&#8221;Private Declare Function&#8221;の箇所で、&#8221;Declare&#8221;と&#8221;Function&#8221;の間に&#8221;PtrSafe&#8221;を付け加えた。</p>
<p>Edgeを開き、IEモードで開くところまでは動いたのですが、どうしてもgoogle検索の検索ボックスにキーワード挿入する箇所（IeEdge.getElementsByName(&#8220;q&#8221;)(0).Value = &#8220;VBA・GAS・Pythonで業務を楽しく効率化&#8221;）で「オブジェクト型の変数は設定されていません (エラー 91)」というエラーとなってしまいます。考えられる原因がもしわかるようでしたらご教授して頂きたいです。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		okumasahito より Outlookの差し込みメールを作成するExcelVBA（メール作成④） へのコメント		</title>
		<link>https://officevba.info/excelvbaoutlookmailpreparation4/#comment-27</link>

		<dc:creator><![CDATA[okumasahito]]></dc:creator>
		<pubDate>Thu, 09 Feb 2023 04:52:02 +0000</pubDate>
		<guid isPermaLink="false">http://officevba.info/?p=1547#comment-27</guid>

					<description><![CDATA[&lt;a href=&quot;https://officevba.info/excelvbaoutlookmailpreparation4/#comment-26&quot;&gt;マツ&lt;/a&gt; への返信。

コメントありがとうございます。
本文中の3カ所ある添付ファイルを参照するコードの
「DesktopPath」を以下のように共有フォルダのアドレスに変更すると
共有フォルダから添付できると思います。

変更前：oItem.Attachments.Add DesktopPath &amp; &quot;\&quot; &amp; 添付…
変更後：oItem.Attachments.Add &quot;共有フォルダのアドレス&quot; &amp; &quot;\&quot; &amp; 添付…

ただ、ネットワークの速度と共有フォルダのスペックによっては
スピードが遅くなる可能性が高いと思います。]]></description>
			<content:encoded><![CDATA[<p><a href="https://officevba.info/excelvbaoutlookmailpreparation4/#comment-26">マツ</a> への返信。</p>
<p>コメントありがとうございます。<br />
本文中の3カ所ある添付ファイルを参照するコードの<br />
「DesktopPath」を以下のように共有フォルダのアドレスに変更すると<br />
共有フォルダから添付できると思います。</p>
<p>変更前：oItem.Attachments.Add DesktopPath &#038; &#8220;\&#8221; &#038; 添付…<br />
変更後：oItem.Attachments.Add &#8220;共有フォルダのアドレス&#8221; &#038; &#8220;\&#8221; &#038; 添付…</p>
<p>ただ、ネットワークの速度と共有フォルダのスペックによっては<br />
スピードが遅くなる可能性が高いと思います。</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
