excel - 添加注释作为公式

标签 excel excel-formula comments

如何在 Excel 工作表上自动添加注释?是否有一个公式可以创建像 "= Comment("etc")" 这样的评论?

例如,在每行都有简短介绍的列中,我认为注释比每个单元格中的长文本更好。

也欢迎其他替代方案。

最佳答案

使用 VBA 的一个简单答案是创建一个如下所示的 VBA 函数:

Option Explicit

Function InsertComment(Stringincell As String, StrinComment As String)
   Application.Caller.ClearComments
   Application.Caller.AddComment StrinComment
   InsertComment = Stringincell
End Function

现在,您使用常规 Excel 并在单元格中输入函数/公式以获取文本作为注释:

=Comment("String to see in the cell","String you want to see in the comment")

关于excel - 添加注释作为公式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52965844/

相关文章:

.net - 发布 Tlb 新版本以及何时需要重新引用 Tlb

mysql - 使用 VBA 连接 WAMP MySQL

如果公式及其范围求和的Excel问题

visual-studio-code - 注释空行

xcode - Xcode : How to make them stand out? 中的待办事项

sql - 如何解决 Excel 因某些 SELECT 语句而崩溃的问题?

vba - 检查是否有未读的电子邮件,附件名称包含 "Production_Plan"作为名称的一部分,使用 excel - vba

excel - 使用10 ^创建函数的UDF问题

excel - OFFSET 实际上是缓慢的还是不稳定的?

intellij-idea - 生成 Kotlin 方法/类注释