<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hasekin28</author_name>
  <author_url>https://blog.hatena.ne.jp/hasekin28/</author_url>
  <blog_title>エラー大全集</blog_title>
  <blog_url>https://error-daizenn.hatenablog.com/</blog_url>
  <categories>
    <anon>VBAのエラー</anon>
    <anon>AI</anon>
  </categories>
  <description>知人の体験談のあらすじ ある知人が、VBA（Visual Basic for Applications）を用いてExcelの処理を自動化しようとしていました。具体的には、特定のファイルを選択し、その中のすべてのシートに対して繰り返し処理を行うコードを書こうとしています。以下のようなコードを使用しています。 vba For Each sh In Worksheets ' 各シートに対する処理 Next sh このコードは通常のワークシートに対しては問題なく動作し、それぞれのシートに対して処理を行うことができます。しかし、問題は「モジュールシート（VBAコードを含むモジュール）」が存在する場合に発…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ferror-daizenn.hatenablog.com%2Fentry%2F2025%2F01%2F21%2F093809&quot; title=&quot;VBAでモジュールシートを回避する方法とエラー対策ガイド - エラー大全集&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-01-21 09:38:09</published>
  <title>VBAでモジュールシートを回避する方法とエラー対策ガイド</title>
  <type>rich</type>
  <url>https://error-daizenn.hatenablog.com/entry/2025/01/21/093809</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
