excel表格吧 关注:13,406贴子:26,504
  • 5回复贴,共1

excel宏怎样实现调整批注字体大小

只看楼主收藏回复

求大神指导:
exce工作薄,用宏怎样实现调整工作表里批注字体大小固定为18?


IP属地:广东1楼2024-03-11 16:02回复
    With rng'这个rng是单元格变量,自己需要哪个放哪个
    .ClearComments
    .AddComment Text:="XXX" ‘添加备注内容
    .Comment.Shape.TextFrame.Characters.Font.Size = 12 ‘设置字体大小12号
    .Comment.Shape.TextFrame.Characters.Font.Color = vbRed ‘设置字体颜色红色
    .Comment.Shape.TextFrame.Characters.Font.Bold = True ‘设置字体是否加粗
    End With


    IP属地:上海4楼2024-03-19 14:58
    收起回复