<?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マクロを使うのが最も効率的です。今回は、蛍光ペン付きの文字を検索し、色を判定して変更するマクロの事例をご紹介します。 内容： この方法（マクロ）のメリット VBAマクロのサンプルコード コードの補足説明 参考：マクロを使わず、蛍光ペンを解除する方法 確認のWordは「Microsoft® Word for Microsoft 365 MSO」 (バージョン 2510）です。 この方法（マクロ）のメリット 標準の「検索と置換」機…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshikumika.org%2Fentry%2Fword-vba-highlight-search-replace&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/20251113/20251113120008.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-11-13 12:30:00</published>
  <title>【Word VBA】蛍光ペンを検索し、色を判定して変更する方法</title>
  <type>rich</type>
  <url>https://shikumika.org/entry/word-vba-highlight-search-replace</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
