|
楼主 |
发表于 2018-10-22 15:58
|
显示全部楼层
- Sub 按钮3_Click()
- For j = 1 To 13 Step 5
- For i = 1 To Cells(Rows.Count, 1).End(3).Row Step 11
- Cells(i, j).Resize(10, 3).CopyPicture 1, 2
- ActiveSheet.Pictures.Paste.Select
- With Selection
- .Copy
- With ActiveSheet.ChartObjects.Add(0, 0, Selection.Width, Selection.Height).Chart
- .Paste
- fnm = ThisWorkbook.Path & "\导出区域图片" & Cells(i + 1, j + 1) & ".jpg"
- .Export fnm
- .Parent.Delete
- End With
- .Delete
- End With
- Next i
- Next j
- End Sub
复制代码
将准考证区域保存为图片,在数据有变动的时候,不要关闭刷屏,不然导出图片会有异常,各位可以自行尝试
|
评分
-
4
查看全部评分
-
|