このブラウザーはサポートされなくなりました。 Microsoft Edge にアップグレードすると、最新の機能、セキュリティ更新プログラム、およびテクニカル サポートを利用できます。 概要: この記事では、プログラマ以外の読者を対象に、Visual Basic for Applications (VBA) を使用して Microsoft Outlook 2010 の機能を拡張する方法を紹介します。このトピックでは、VBA 言語の概要、Outlook 2010 で VBA を使用する手順、Outlook VBA プログラミングの実践的問題に対する詳細な解決策、およびプログラミングとデバッグのヒントを説明します。 適用対象: Office 2010 | Outlook 2010 | VBA この記事の内容 Outlook 2010 の VBA プログラミング VBA プログラミングの基礎 マク
昨日(文字列の前後の改行を削除するTRIM)のマクロの続き。 Outlookの[週報]というメールフォルダで各自の週報メールから[進捗ステータス]の箇所だけ取り出し、エクセルに貼付けたい。 実はこれがやりたかった。 ということでエクセルで動作するマクロを作成。(trimはその時にはまったところ) 実行すると新しいBookを自動作成し、Outlookから指定した数のメールを読み込み、特定箇所を抽出しBookに出力します。 もちろんメールフォーマットが統一されていることが前提で、(要設定)と書いてるところを環境に合わせて設定することで使えます。(ただし使う場合は自己責任でお願いします。) Option Explicit Sub ExtractMail() Dim olAPP As Object Dim ns As Object Dim mf As Object Dim mailCount As
メルマガ発行内容 <配列とArray関数> こんにちは、 回りくどい解説中の三流プログラマーKen3です。 今回は、変数の配列をやってみたいと思います。 配列っていっても、そんなたいしたことじゃないのでご安心を。 /* * 1.配列変数って?なに?どう使うの? */ Sub test4() Dim a(4) As String '(*1) a(0) = "デフォルトのベースは0から" '(*2) a(1) = "始まりました" '(*3) a(2) = "解説かぁ、、、" a(3) = "配列ねぇ、何だろうね" a(4) = "単に(n)で参照、、う~ん" MsgBox a(1) MsgBox a(3) '(*4) End Sub 上記、簡単なサンプルなのですが、 dim の変数宣言でいつもと違うのが Dim a(4) As String '(*1) ^^^↑の(4) ですね。 これは、変
Outlook には Word や Excel と同様、VBA によるマクロ機能がありますが、Word や Excel とは異なり、ユーザーの操作をマクロとして記憶する機能がありません。 そのため、Outlook で VBA マクロを使うには、Outlook のオブジェクト モデルというものを理解することが必要となり、とっつきにくいものとなってしまっているように思います。 しかし、使いこなせるようになれば色々と便利です。 そこで、このページでは Outlook 2010 以降で VBA マクロを作成する手順をステップ バイ ステップで説明します。 1. マクロの作成 マクロを作成するには、Visual Basic Editor を使用します。 今回は簡単なサンプルとして「”Hello World” というダイアログ メッセージを表示する」というマクロを作ります。 手順は以下の通りです。 O
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く