Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この行は、Excel 2010 では正常に機能しますが、Excel 2007 では機能しません (別のコンポーネントでは)。
For Each ws In ThisWorkbook.Sheets...
コンパイル エラー: プロパティまたはライブラリが見つかりません "ws" は黄色でマークされています
原因は何ですか?
その理由は、参照が欠落している可能性がありますTools -> References(その前に で示されますMISSING:)。
Tools -> References
MISSING:
欠落している参照を修正すると、それはなくなります。