|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
这一段改一下
............
For Each k In rngTemp
Set R = k
If k.MergeCells Then '处理合并单元格
Set R = R.MergeArea
End If
With k
Filename = Dir(FilePath & .Value & "*.jpg")
If k <> "" And Filename <> "" Then
ActiveSheet.Shapes.Addpicture FilePath & Filename, False, True, R.Left, R.Top, R.Width, R.Height
.ClearComments
.AddComment
.Comment.Shape.Fill.UserPicture FilePath & "\" & .Value & ".jpg"
.Comment.Shape.Height = 240
.Comment.Shape.Width = 320
Filename = ""
End If
End With
Next
................... |
|