VBA Excel copy comment including formatting

后端 未结 1 802
陌清茗
陌清茗 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)
提交回复
热议问题