Excel精英培训网

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

EXCEL里面的批注如何导出

[复制链接]
发表于 2010-4-18 09:49 | 显示全部楼层 |阅读模式
excel里面的批注如何批量导出。谢谢!!
发表于 2010-4-18 09:54 | 显示全部楼层

Q:如何编写提取单元格批注的自定义函数?
A:提取单元格批注的自定义函数代码如下:
如何编写提取单元格批注内容的自定义函数? http://www.exceltip.net/thread-4601-1-1-232.html

Function GetComment(sRng As Range, sDisp As Integer) As String
On Error GoTo ErrLine
Dim sComment As String
Application.Volatile True
    If sRng.Count = 1 Then
    sComment = sRng.Comment.Text
        If sDisp = 1 Then
            GetComment = Right(sComment, Len(sComment) - InStr(1, sComment, ":"))
        ElseIf sDisp = 2 Then
            GetComment = Left(sComment, InStr(1, sComment, ":") - 1)
        Else
            GetComment = sComment
        End If
    End If
ErrLine:
End Function

回复

使用道具 举报

 楼主| 发表于 2010-4-18 10:01 | 显示全部楼层

晕,我还没到那个级别哦,看不懂楼上的东东。不知道有没有更简单些的方法哦!谢谢!![em03]
回复

使用道具 举报

发表于 2010-4-18 10:05 | 显示全部楼层

Function getcom(rng As Range)
    Application.Volatile
    On Error GoTo err
    getcom = rng.Comment.Text
    Exit Function
err:
    getcom = ""
   
End Function
bin-yang写的自定义函数,非常简洁的说。
回复

使用道具 举报

发表于 2010-4-18 10:07 | 显示全部楼层

再简单的V偶也看不懂[em04]
回复

使用道具 举报

发表于 2010-4-18 10:31 | 显示全部楼层

不明白题意,也不明白回复

[em11]
回复

使用道具 举报

发表于 2010-4-18 11:58 | 显示全部楼层

EXCEL里面的批注如何导出

EXCEL里面的批注如何导出

回复

使用道具 举报

发表于 2011-5-25 09:50 | 显示全部楼层
学习了,谢谢!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-2 10:21 , Processed in 0.275930 second(s), 10 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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