Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 3312|回复: 1

大神们 可以提取批注吗 帮忙写个公式

[复制链接]
发表于 2015-2-9 16:53 | 显示全部楼层 |阅读模式
5学分

提取批注.zip

2.06 KB, 下载次数: 11

excel精英培训的微信平台,每天都会发送excel学习教程和资料。扫一扫明天就可以收到新教程
发表于 2015-2-9 17:21 | 显示全部楼层
Access中国版友盗梦的代码
  1. '函数名:获取批注的作者
  2. '返回值:字符串(String)
  3. '--参数:rng,单元格,必填
  4. '--示例:=GetCommentAuthor(A1)
  5. Public Function GetCommentAuthor(rng As Range) As String
  6.     If Not rng.Comment Is Nothing Then GetCommentAuthor = rng.Comment.Author
  7. End Function

  8. '函数名:获取批注的内容
  9. '返回值:字符串(String)
  10. '--参数:rng,单元格,必填
  11. '--示例:=GetCommentText(A1)
  12. Public Function GetCommentText(rng As Range) As String
  13.     If Not rng.Comment Is Nothing Then GetCommentText = rng.Comment.Text
  14. End Function
复制代码
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-5-19 15:52 , Processed in 0.252434 second(s), 10 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表