たとえば残業は16時までにメールで申請、とかってあるよね。 残業するときにそのメールを書くってだけで面倒で嫌になるから、 excelに記入した内容で申請メールを自動送信するマクロ&VBScriptを書いた。 要BSMTP.DLL&BSENDM.EXE。WINDOWS\system32ディレクトリに配置して。 BASP21 DLL こんなexcelを作る。ここではOvertime.xlsとする。 VBA Private Declare Function SendMailEx Lib "bsmtp" _ (szLogfile As String, szServer As String, szTo As String, _ szFrom As String, szSubject As String, szBody As String, szFile As String) As String Pu
![残業予定をexcelに記述し申請メールを自動送信する - Fight the Future](https://cdn-ak-scissors.b.st-hatena.com/image/square/da79473199f7014003047592050caed9f3e4fd88/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2Fj%2Fjyukutyo%2F20090225%2F20090225141600.jpg)