网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容

如何在excel单元格中批量插入批注图片提示

时间:2024-10-13 02:35:47

1、打开一个需要编辑的excel表格。

如何在excel单元格中批量插入批注图片提示

3、右键选中批注边框的边缘,在弹出的额下拉菜单中选择“设置批注格式”。

如何在excel单元格中批量插入批注图片提示

5、点击“颜色”下的“填充”

如何在excel单元格中批量插入批注图片提示

7、插入一张图片。

如何在excel单元格中批量插入批注图片提示

9、Sub 批量插入图片批注提示()Dim aa = MsgBox("提示:1、请将图片放到与本表格同一目录下的“1”文件夹中。2、阄唰辔腽请选中要添加图片批注的单元格。", vbOKCancel, “图片”)If a = 1 ThenOn Error Resume NextDim MR As RangeDim Pics As StringFor Each MR In Selection If Not IsEmpty(MR) Then MR.Select MR.AddComment MR.Comment.Visible = False MR.Comment.Text Text:="" MR.Comment.Shape.Fill.UserPicture PictureFile:=ActiveWorkbook.Path & "\1\" & MR.Value & ".jpg"End IfNextEnd IfEnd Sub

如何在excel单元格中批量插入批注图片提示

11、在代码窗口中,点击“运行”

如何在excel单元格中批量插入批注图片提示

13、这时候我们可以看到已经自动添加了图片,这样就完成了自动图片提示。

如何在excel单元格中批量插入批注图片提示
© 小知经验