|
Option Explicit
Sub TEST1()
Dim r&, strFileName$, strPath$, dWidth#, dHeight#
strPath = ThisWorkbook.Path & "\"
r = Cells(Rows.Count, "R").End(xlUp).Row
With Range("R1:AJ" & r)
strFileName = strPath & "LT23.jpg"
.CopyPicture
dWidth = .Width
dHeight = .Height
With ActiveSheet.ChartObjects.Add(0, 0, dWidth, dHeight)
With .Chart
.Paste
.ChartArea.Format.Line.Visible = msoFalse
.PlotArea.Format.Line.Visible = msoFalse
.ChartArea.Fill.Visible = msoFalse
.PlotArea.Fill.Visible = msoFalse
.Export Filename:=strFileName
End With
.Delete
End With
End With
Beep
End Sub
|
评分
-
1
查看全部评分
-
|