2007-05-12から1日間の記事一覧

VBAからWin32 API呼び出し

Excel 2007で試した。Win32 APIのMessageBoxをサンプルに。 int MessageBox( HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType ); 文字列は内部でUnicodeで扱われているので、MessageBoxWを利用する。 Declare Function MessageBox Lib "user32.dl…