Excel精英培训网

 找回密码
 注册
查看: 1331|回复: 0

求问这个vba里为啥运行到一半停止le

[复制链接]
发表于 2015-8-9 21:29 | 显示全部楼层 |阅读模式
运行到 with cell.addcomment那里停止了。为啥啊

file:///C:\Users\pccho\AppData\Local\Temp\mx3B5FC.pngSub AddABunch()    For Each cell In Selection
    Pics = "E:\Pictures\2015\Lego" & cell.Value & ".jpg"
    With cell.Addcomment
      .Shape.Fill.UserPicture PictureFile:=Pics
      .Shape.Height = 100
      .Shape.Width = 100
    End With
    Next cell
    End Sub

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

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-5-3 18:24 , Processed in 0.239012 second(s), 10 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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