<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ycloud</author_name>
  <author_url>https://blog.hatena.ne.jp/ycloud/</author_url>
  <blog_title>shikumika’s diary</blog_title>
  <blog_url>https://shikumika.org/</blog_url>
  <categories>
    <anon>Word</anon>
    <anon>VBA</anon>
  </categories>
  <description>Word VBAを使って、コメントで選択された文章を修正するマクロを作成したいとき、Comment.Scope プロパティを活用した修正の動作確認メモです。 内容： 動作確認の背景 確認した内容 動作テストの文書 動作テストのコード 動作テストの結果 動作確認のWordは「Microsoft® Word for Microsoft 365 MSO」（バージョン2501）です。 動作確認の背景 Word文書の編集時、文章にコメントをつけることはできますが、選択範囲の文章を修正すると、コメントで選択された文章範囲が意図した通りに動作しないことがあります。手作業での変更方法は次のとおりですが、マクロ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikumika.org%2Fentry%2Fword-comment-scope&quot; title=&quot;【Word VBA】コメントで選択された文章を修正するマクロの動作確認 - shikumika’s diary&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/y/ycloud/20250211/20250211232155.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-02-12 12:30:00</published>
  <title>【Word VBA】コメントで選択された文章を修正するマクロの動作確認</title>
  <type>rich</type>
  <url>https://shikumika.org/entry/word-comment-scope</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
