搜索
查看: 2234|回复: 0

批注批量添加图片

[复制链接]

977

主题

1093

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
15934
发表于 2018-12-31 15:10:53 | 显示全部楼层 |阅读模式
'修改批注
Sub 修改批注()
Range("a2").AddComment '添加批注
[a2].Comment.Shape.Height = 50 '设置批注高度
[a2].Comment.Shape.Width = 40 '设置批注宽度
[a2].Comment.Shape.Fill.UserPicture ThisWorkbook.Path & "\7pic\阿汤.png"
End Sub

Sub 批量将批注增加背景()
For Each Rng In Selection
paths = ThisWorkbook.Path & "\7pic\" & Rng.Value & ".png"
    Rng.ClearComments
    Rng.AddComment
    Rng.Comment.Shape.Height = 50
    Rng.Comment.Shape.Width = 40 '设置批注宽度
Rng.Comment.Shape.Fill.UserPicture paths
Next
End Sub

回复

使用道具 举报

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

本版积分规则

表格智创网

网站简介:表格智创网,是一家以表格设计和技能分享的专业社区,由会计帮帮网投资建设,尽专业,助提高专业技能。

表格智创网欢迎您!

联系我们

  • 工作时间:早上9:00-16:00
  • 客服电话:18668755857
  • 本站网址:www.excelwps.com
  • 淘宝店址:kjbbw.taobao.com

Powered by Discuz! X3.4 © 2001-2013 Comsenz Inc.

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