<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ken3memo</author_name>
  <author_url>https://blog.hatena.ne.jp/ken3memo/</author_url>
  <blog_title>三流君のソースコード置き場</blog_title>
  <blog_url>https://ken3code.hatenablog.jp/</blog_url>
  <categories>
    <anon>VBA</anon>
    <anon>Excel</anon>
  </categories>
  <description>Worksheet_Changeの中でセルを書き換えると、またイベントが起きて無限ループ…焦りますよね。 検索で来られた方のために、まずは最も確実な解決コード（王道）を置いておきます。▼ コピペで解決！王道の修正コード 最も確実なのは『Application.EnableEvents = False』を使って、一時的にイベントの発生を止める方法です。 Private Sub Worksheet_Change(ByVal Target As Range) On Error GoTo ErrorHandler ' 1. イベントの発生を一時停止（ここが重要！） Application.Enable…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fken3code.hatenablog.jp%2Fentry%2F2026%2F01%2F17%2F073000&quot; title=&quot;【結論：無限ループは「イベントの一時停止」で解決します！】Worksheet_Changeの中で無限ループするコードについて - 三流君のソースコード置き場&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/k/ken3memo/20260105/20260105142113.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-17 07:30:00</published>
  <title>【結論：無限ループは「イベントの一時停止」で解決します！】Worksheet_Changeの中で無限ループするコードについて</title>
  <type>rich</type>
  <url>https://ken3code.hatenablog.jp/entry/2026/01/17/073000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
