<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mtiit</author_name>
  <author_url>https://blog.hatena.ne.jp/mtiit/</author_url>
  <blog_title>(O+P)ut</blog_title>
  <blog_url>https://www.mtioutput.com/</blog_url>
  <categories>
    <anon>Windows</anon>
    <anon>Windows-Excel</anon>
  </categories>
  <description>はじめに VBAコードをコマンドプロンプトのバッチから読みだして利用するとエラーが発生した場合にエラー内容が確認できません。 そこで、本記事ではVBAコードに数行差し込むことでエラー発生時に時刻情報付きでエラー内容をテキストファイルに書き出す方法を解説します。 環境情報 Excel：Microsoft Office 365 2020年 Microsoft Visual Basic for Applications 7.1 VBAに追記するコード モジュールの先頭に以下を追記します。 On Error GoTo Err_line これでErrorが発生した際にErr_lineに移動します。そして…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mtioutput.com%2Fentry%2Fvba-debug-outtext&quot; title=&quot;【ExcelVBA】マクロで発生したエラー情報をテキストファイルに出力させる方法 - (O+P)ut&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mtiit/20160629/20160629121957.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-09-07 10:54:14</published>
  <title>【ExcelVBA】マクロで発生したエラー情報をテキストファイルに出力させる方法</title>
  <type>rich</type>
  <url>https://www.mtioutput.com/entry/vba-debug-outtext</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
