<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lunark</author_name>
  <author_url>https://blog.hatena.ne.jp/lunark/</author_url>
  <blog_title>Lunarfactory</blog_title>
  <blog_url>https://lunark.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>VBAマクロを用いてテキストファイルをString型変数に入れるケースにおいて、UTF-8の場合のみADODB.Streamを使うように指示しているリファレンスサイトが多いのですが、実は文字コードを指定すればなんでも読めます。 よって、Shift-JISだからといって、FSOを用いたテキスト読み込みなどを用いる必要は特にありません。 Dim pstrFN As String ’ファイル名フルパスを指定する Dim pMojiCode As String ’文字コードを指定する Dim buf As String ’ここに読み込んだテキストが格納される With CreateObject(&quot;AD…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flunark.hatenablog.jp%2Fentry%2F2020%2F06%2F08%2F121345&quot; title=&quot;VBAマクロを用いてテキストファイルを読み込むとき - Lunarfactory&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-06-08 12:13:45</published>
  <title>VBAマクロを用いてテキストファイルを読み込むとき</title>
  <type>rich</type>
  <url>https://lunark.hatenablog.jp/entry/2020/06/08/121345</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
