メインコンテンツへスキップ

Excelの複数のセルにコメントをすばやく挿入するにはどうすればよいですか?

ワークシートでは、セルにコメントを挿入するのは非常に簡単ですが、同じコメントを複数のセルに同時に挿入する場合は、どうすればよいでしょうか。

特殊貼り付け機能を使用して、複数のセルにコメントを挿入します
VBAコードを使用して複数のセルにコメントを挿入する


特殊貼り付け機能を使用して、複数のセルにコメントを挿入します

Excelでは、複数のコメントを同時に挿入する方法はありません。 ただし、次のようにコメントを複数のセルにコピーできます。

1.コメントをセルに挿入します。

2.コメントセルを選択し、を押します Ctrlキー + C キーを押してコピーします。

3.次に、コメントをバッチ挿入する範囲を選択して右クリックし、を選択します。  貼り付け > 貼り付け 右クリックメニューから。 スクリーンショットを参照してください:

4。 の中に 貼り付け ダイアログボックスで コメント オプションをクリックしてから、 OK ボタン。 スクリーンショットを参照してください:

次に、選択したすべてのセルに同じコメントがすぐに挿入されます。

Note:このメソッドは、選択したすべてのセルに同じコメントを挿入します。 フィルタリングされたリストの表示セルにのみ同じコメントを挿入する場合は、以下のVBAメソッドを試してください。


VBAコードを使用して複数のセルにコメントを挿入する

以下のスクリーンショットに示すように、フィルタリングされたリストがあるとします。 そして、表示されているすべてのセルにコメントをバッチで追加したいだけです。 次のようにしてください。

1。 プレス 他の + F11 一緒に鍵を開いて アプリケーション用のMicrosoftVisual Basic 窓。

2。 の中に アプリケーション用のMocrosoftVisual Basic ウィンドウをクリックしてください インセット > モジュール、および次のコードをモジュールに入力します。

VBA:複数のセルへのバッチ不活性コメント(フィルターされたリストにのみ表示されるセル)

Sub InsertCommentsSelection()
    Dim xRg As Range
    Dim xRgEach As Range
    Dim xAddress As String
    Dim xText As String
    On Error Resume Next
    xAddress = ActiveWindow.RangeSelection.Address
    Set xRg = Application.InputBox("Please select a range:", "Kutools For Excel", xAddress, , , , , 8)
    If xRg Is Nothing Then Exit Sub
    If xRg.Count > 1 Then
        Set xRg = xRg.SpecialCells(xlCellTypeVisible)
    End If
    xRg.Select
    xText = InputBox("Enter Comment to Add" & vbCrLf & "Comment will be added to all cells in Selection: ", "Kutools For Excel")
    If xText = "" Then
        MsgBox "No comment added", vbInformation, "Kutools For Excel"
        Exit Sub
    End If
    For Each xRgEach In xRg
        With xRgEach
        .ClearComments
        .AddComment
        .Comment.Text Text:=xText
        End With
    Next xRgEach
End Sub

3。 プレス F5 コードを実行するためのキー。 最初のポップアップで Kutools for Excel ダイアログボックスで、コメントを追加するフィルタリングされた範囲を選択し、[ OK ボタン。 スクリーンショットを参照してください:

4.次に別の Kutools for Excel ダイアログボックスが表示されます。テキストボックスにコメントを入力して、[ OK

以下のスクリーンショットに示すように、選択したフィルター済みリストのすべての表示セルにのみコメントが挿入されます。


最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Comments (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
how do you make it ignores none merged cells and just add notes to only the merged cells selected?
This comment was minimized by the moderator on the site
Hello, iresolver
To solve your problem, please apply the below code:
Sub InsertCommentsSelection()
    Dim xRg As Range
    Dim xRgEach As Range
    Dim xAddress As String
    Dim xText As String
    On Error Resume Next
    xAddress = ActiveWindow.RangeSelection.Address
    Set xRg = Application.InputBox("Please select a range:", "Kutools For Excel", xAddress, , , , , 8)
    If xRg Is Nothing Then Exit Sub
    If xRg.Count > 1 Then
        Set xRg = xRg.SpecialCells(xlCellTypeVisible)
    End If
    xRg.Select
    xText = InputBox("Enter Comment to Add" & vbCrLf & "Comment will be added to all cells in Selection: ", "Kutools For Excel")
    If xText = "" Then
        MsgBox "No comment added", vbInformation, "Kutools For Excel"
        Exit Sub
    End If
    For Each xRgEach In xRg
        If xRgEach.MergeCells Then
            With xRgEach
            .ClearComments
            .AddComment
            .Comment.Text Text:=xText
            End With
        End If
    Next xRgEach
End Sub


Please have a try, hope it can help you!
This comment was minimized by the moderator on the site
Excelente, gracias
This comment was minimized by the moderator on the site
Excelente aporte, gracias por el dato !!!!
This comment was minimized by the moderator on the site
Can anyone help me in VBA Code,
I want that I do multiple comments and have option to add picture in each cell without doing formatting again and again.
and then picture of that cell will save in folder of excel file with same cell name.
I will be thankful to you if anyone helps me in this
This comment was minimized by the moderator on the site
this is really very informative post ..


thanks for the awesome post
digifloor
This comment was minimized by the moderator on the site
for filtered cell it is not working
This comment was minimized by the moderator on the site
Dear me,
The VBA code is now updated. It supports batch insert comment to not only normal range, but also visible cells only in a filtered list.
Thank you for your comment!
This comment was minimized by the moderator on the site
if the sheet in excel is in filter will this apply for only filtered cells????
This comment was minimized by the moderator on the site
[quote]I researed valuable information on this point as I am working on a class project. Thank you posting useful information and its now becoming easier to accomplish this task. font converter online
This comment was minimized by the moderator on the site
That's really helpful. thanks.
This comment was minimized by the moderator on the site
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog. Yong http://www.gofastek.com
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations