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

Excelでセルの内容をコメントに変換するにはどうすればよいですか?

ある範囲のセルにいくつかの情報が入力されていて、それらのセルの内容をワークシートのコメントに変換したい場合があります。 このタスクをExcelで完了することは可能ですか? この問題を解決するための簡単なトリックをいくつか紹介します。

セルの内容をコメントに変換する VBAコード

セルの内容をコメントにすばやく変換する Kutools for Excel


矢印青い右バブル セルの内容をVBAコードでコメントに変換する

次の簡単なVBAコードは、セルの内容をコメントに変換するのに役立ち、次の手順でコードを適用できます。

1。 コメントに変換するセル値の範囲を選択します。

2に設定します。 OK をクリックします。 Developer > ビジュアルベーシック、新しいです アプリケーション用のMicrosoftVisual Basic ウィンドウが表示されたら、をクリックします インセット > モジュール、および次のコードをモジュールに入力します。

Sub CellToComment()
'Updateby20140509
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    Rng.NoteText Text:=Rng.Value
Next
End Sub

3。次にクリックします doc-分割-5 ボタンを押してコードを実行します。 そして、変換する範囲を選択するためのダイアログがポップアップし、クリックします OK、選択したセルの内容はすべてコメントに変換されています。 スクリーンショットを参照してください:


doc-cells-to-comments1 -2 doc-cells-to-comments2

矢印青い右バブルKutools for Excelを使用して、セルの内容をコメントにすばやく変換する

Excelの初心者として、VBAコードは少し難しいです。 そこで、これに対処する簡単な方法を紹介します。

Kutools for Excel : 300以上の便利なExcelアドインがあり、30日以内に制限なしで無料で試すことができます。 今すぐ入手

Kutools for Excelをインストールしている場合は、 コメントとセルを変換する of クツール セルの内容をコメントにすばやく簡単に変換するのに役立ちます。 次のようにしてください。

1。 コメントに変換する範囲を強調表示します。

2に設定します。 OK をクリックします。 クツール > その他 > コメントとセルを変換する、スクリーンショットを参照してください:

3。 の中に コメントとセルを変換する ダイアログボックスで セルの内容をコメントに変換する オプション。 スクリーンショットを参照してください:

4に設定します。 OK をクリックします。 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 (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Is there any plan to convert to Comments instead of notes for the functionality of the new Excel versions?
This would be very helpful

Here is a VBA that works but a Kutools shortcut would be nice as it would work in any file extension instead of only Macro compatible

Convert Cell Content to Comment
Sub ConvertToComment()
Dim C As Range
For Each C In Selection
C.ClearComments
If Len(C.Value) > 0 Then
C.AddComment
C.Comment.Text C.Value & ""
End If
'Optional: Delete cell content after converting
C.ClearContents
Next C
End Sub
This comment was minimized by the moderator on the site
hi! hi about new Excel comments option, not notes?
This comment was minimized by the moderator on the site
Hi, I use this macro to check old values in a range of cell. How can add comments to existing comments with a text. eg - first value is 1000. then I run the macro is must come as "was 1000" in comments. now I have changed value to 900. Next time I run the macro on same cell or cells it must show as "was900 was1000" now changed value to 800. so when I check cell comments I can see value actually dropped from 1000 to 900 and currently it is 800.
This comment was minimized by the moderator on the site
I need help to enter new row. However there are few condition . 1.> I need each row for Col A1(for ID# i.e. A1, A2..A25) as progressive addition when every time new row is entered. If , I'm entering new row after A20 then next row should have ID# as A21. It should always insert the row below last used row. 2.> Similarily, I need to add in progressive hyperlink cell value in the column "H1" onward. Is this possible, If yes, please advise.
This comment was minimized by the moderator on the site
I'm using Excel 2010 and facing same issue i.e. when char length is more than it skip to convert in comment. Please could you please advise as what change needs to be made in code to not limit the char length.
This comment was minimized by the moderator on the site
what is the string length limit for the conversion? It appears cells with Cell content longer than 255 are skipped. It would at least be better to get the first 255 characters converted
This comment was minimized by the moderator on the site
[quote]what is the string length limit for the conversion? It appears cells with Cell content longer than 255 are skipped. It would at least be better to get the first 255 characters convertedBy Darrel Stickler[/quote] Hello, please tell me the version information of your Excel. There is no such issue with Kutools for Excel 7.00. :) please contact me at jaychivo#extendoffice.com
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations