5个回答
展开全部
在批注列后插入一列,选取这些批注的单元格,执行以下面的宏代码
Sub Macro1()
Dim iCell As Excel.Range
Dim iData As Excel.Range
Dim sComment As String
Const iColOffset As Integer = 1
If TypeName(Selection) = "Range" Then
Set iData = Intersect(Selection, ActiveSheet.UsedRange)
For Each iCell In iData.Cells
On Error Resume Next
sComment = iCell.Comment.Text
If Len(sComment) > 0 Then
iCell.Offset(, iColOffset).Value = sComment
End If
sCommet = ""
On Error GoTo 0
Next
End If
End Sub
Sub Macro1()
Dim iCell As Excel.Range
Dim iData As Excel.Range
Dim sComment As String
Const iColOffset As Integer = 1
If TypeName(Selection) = "Range" Then
Set iData = Intersect(Selection, ActiveSheet.UsedRange)
For Each iCell In iData.Cells
On Error Resume Next
sComment = iCell.Comment.Text
If Len(sComment) > 0 Then
iCell.Offset(, iColOffset).Value = sComment
End If
sCommet = ""
On Error GoTo 0
Next
End If
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
复制,选择性粘贴,批注
试试看是不是你要的效果
试试看是不是你要的效果
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
楼主说的是要批量导出批注,我也想了解,期待高手回答
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询