VBA Excel copy comment including formatting

后端 未结 1 743
陌清茗
陌清茗 2021-01-25 05:56

I\'m using Excel 2007, and trying to write a VBA subroutine that will copy cell comments (including formatting). Cell comments can contain basic text formatting (style eg. bold

相关标签:
1条回答
  • 2021-01-25 06:27

    To copy formatted comments:

    Sub Macro1()
        Range("E9").Copy
        Range("L3").PasteSpecial Paste:=xlPasteComments, Operation:=xlNone, _
            SkipBlanks:=False, Transpose:=False
    End Sub
    
    0 讨论(0)
提交回复
热议问题