跳到主要内容

如何在Excel中将单元格内容转换为注释?

也许您有一个充满一些信息的单元格区域,现在您想将这些单元格内容转换为工作表中的注释。 您是否可以在Excel中完成此任务? 以下是解决此问题的一些快速技巧。

将单元格内容转换为注释 VBA代码

快速将单元格内容转换为注释 Kutools for Excel


箭头蓝色右气泡 使用VBA代码将单元格内容转换为注释

以下简短的VBA代码可以帮助您将单元格内容转换为注释,并且可以通过以下步骤应用代码:

1。 选择要转换为注释的单元格值的范围。

2。 点击 开发商 > Visual Basic中,一个新的 适用于应用程序的Microsoft Visual 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然后点击 文档划分-5 按钮执行代码。 然后会弹出一个对话框,供您选择要转换的范围,然后单击 OK,那么所有选定的单元格内容都已转换为注释。 查看屏幕截图:


文档单元到评论1 -2 文档单元到评论2

箭头蓝色右气泡使用 Kutools for Excel 快速将单元格内容转换为注释

作为Excel初学者,VBA代码对您来说有点困难。 因此,我将向您介绍一种简单的处理方法。

Kutools for Excel : 带有超过300个方便的Excel加载项,可以在30天内免费试用。 立即获取

如果您已经安装了 Kutools for Excel, 转换评论和单元格 of 库工具 可以帮助您快速方便地将单元格内容转换为注释。 请执行以下操作:

1。 突出显示您要将其转换为注释的范围。

2。 点击 库工具 > 更多 > 转换评论和单元格,请参见屏幕截图:

3。 在 转换评论和单元格 对话框中选择 将单元格内容转换为注释 选项。 看截图:

4。 点击 OK。 并且所有选定的单元格内容都已转换为单元格注释。 看截图:

转换评论和单元格 功能,您还可以将注释转换为单元格内容。 有关更多详细信息 转换评论和单元格,请访问: 转换注释和单元格功能描述.


相关文章:

最佳办公生产力工具

🤖 Kutools 人工智能助手:基于以下内容彻底改变数据分析: 智能执行   |  生成代码  |  创建自定义公式  |  分析数据并生成图表  |  调用 Kutools 函数...
热门特色: 查找、突出显示或识别重复项   |  删除空白行   |  合并列或单元格而不丢失数据   |   不使用公式进行四舍五入 ...
超级查询: 多条件VLookup    多值VLookup  |   跨多个工作表的 VLookup   |   模糊查询 ....
高级下拉列表: 快速创建下拉列表   |  依赖下拉列表   |  多选下拉列表 ....
列管理器: 添加特定数量的列  |  移动列  |  切换隐藏列的可见性状态  |  比较范围和列 ...
特色功能: 网格焦点   |  设计图   |   大方程式酒吧    工作簿和工作表管理器   |  资源库 (自动文本)   |  日期选择器   |  合并工作表   |  加密/解密单元格    按列表发送电子邮件   |  超级筛选   |   特殊过滤器 (过滤粗体/斜体/删除线...)...
前 15 个工具集12 文本 工具 (添加文本, 删除字符,...)   |   50+ 图表 类型 (甘特图,...)   |   40+ 实用 公式 (根据生日计算年龄,...)   |   19 插入 工具 (插入二维码, 从路径插入图片,...)   |   12 转化 工具 (小写金额转大写, 货币兑换,...)   |   7 合并与拆分 工具 (高级组合行, 分裂细胞,...)   |   ... 和更多

使用 Kutools for Excel 增强您的 Excel 技能,体验前所未有的效率。 Kutools for Excel 提供了 300 多种高级功能来提高生产力并节省时间。  单击此处获取您最需要的功能...

产品描述


Office Tab 为 Office 带来选项卡式界面,让您的工作更加轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,发布者,Access,Visio和Project。
  • 在同一窗口的新选项卡中而不是在新窗口中打开并创建多个文档。
  • 每天将您的工作效率提高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