<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ktrito33</author_name>
  <author_url>https://blog.hatena.ne.jp/ktrito33/</author_url>
  <blog_title>怠日記</blog_title>
  <blog_url>https://nmk365.hatenablog.jp/</blog_url>
  <categories>
    <anon>VBA</anon>
  </categories>
  <description>VBA で ANSI の ini ファイルを読み取る方法は以下のページに書いたとおり。 nmk365.hatenablog.jp それと同様に Unicode の ini ファイルから文字列を読み取るには、Win32API の GetPrivateProfileStringW 関数を使う。 サンプルコード 以下に GetPrivateProfileStringW 関数を使った読み取りのサンプルを示す。 Option Explicit Private Declare PtrSafe Function GetPrivateProfileStringW Lib &quot;kernel32&quot; ( _ ByVa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnmk365.hatenablog.jp%2Fentry%2Fread-unicode-ini-files-in-vba&quot; title=&quot;VBA: Unicodeのiniファイルを読み取るには | GetPrivateProfileStringW関数 - 怠日記&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>2025-08-20 07:00:00</published>
  <title>VBA: Unicodeのiniファイルを読み取るには | GetPrivateProfileStringW関数</title>
  <type>rich</type>
  <url>https://nmk365.hatenablog.jp/entry/read-unicode-ini-files-in-vba</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
