|
楼主 |
发表于 2017-10-27 13:16
|
显示全部楼层
- 'DataObject是要在vbe-工具-引用-Microsoft Forms X.X object Library
- Sub test()
- Dim strPic$, d As Object, strPic2$
- Application.ScreenUpdating = False
- Set d = New DataObject '学习用这个用这个插入图片
- For i = 1 To 42
- strPic = "<table><img src=""https://newimg.uumnt.com:446/Pics/2017/1012/09/" & Format(i, "00") & ".jpg"" weight=""120"" height=""200"" />"
- d.SetText strPic
- d.PutInClipboard
- Cells((i Mod 9) + 1, Int(i / 9) + 1).Select
- ActiveSheet.Paste
- Next
- Application.ScreenUpdating = True
- End Sub
复制代码
抓点能活跃气氛的图片,,发现越学学不会 |
|