Excel&VBAテンプレート集

Excelの関数やVBAのテンプレート集です。

関数

※準備中

VBA

ExcelのVBAです。

メールを送信する。

Set objMail = CreateItem(olMailItem)
With objMail
    .BodyFormat = 1 ' 「3」の場合リッチテキスト型、「1」はテキスト型、「2」は HTML型
    .Subject = ""
    .Body = ""
    .To = ""
    .CC = ""
    .BCC = ""
    .Display
End With