いつもありがとうございます。ナカマサです。 で、関数とかで変換作業をすると思うんですが、まぁいちいち作るのがめんどくさい。 なので、VBAで日付を年度に変換する自作関数を作ってみましたので共有します。 Function Nendo(Hiduke As Date) As Long If Month(Hiduke ...
VBA×ChatGPTの記事も大分長くなってきました。 説明編はもう少しです。この後デバッグを説明したら、事例を挙げての開発に進みます。もう少しの辛抱です。 VBAを学び始めたとき、最初にぶつかりやすいのが 「SubとFunctionの違いってなに?」 という疑問です。
Microsoft Excel allows us to create Custom Excel Functions or User Defined Functions using VBA. We can create Custom Excel Functions with the functionality we want and they can be accessed in the ...