VBAマクロのデバッグ中、Debug.Printで、ループの中の変数の値を確認するのは、非常に有効な手段ですよね。でも、複数の値をただ表示しただけだと、文字数が違うせいで、出力の列がガタガタにずれてしまい、とても見にくい…。そんな経験はありませんか?
デバッグするときは、Msgboxじゃなくて、ポップアップしないDebug.Printが便利。 VBA画面を開く(alt+F11) 「表示」>「イミディエイト ウィンドウ」を開く コードで、Debug.Print と書くとその内容が「イミディエイト ウィンドウ」に表示される。 Debug.Print ...
VBA provides developers with the ability to automate tasks, interact with the features of Microsoft Office applications, and even create applications with a graphical user interface (Userform).