|
我想知道这套代码里 哪一句是调整图片大小 哪一句是打印 因为不太懂 所以不敢乱改。。。
Application.Calculation = xlManual '不自动计算
If MsgBox("您确定要这样做吗?!", 4 + 64, "系统提示") = vbYes Then
Dim MyPath$, MyName$, sh As Worksheet
MyPath = ThisWorkbook.Path & "\"
MyName = Dir(MyPath & "*.xls")
Application.ScreenUpdating = False
Do While MyName <> ""
If MyName <> ThisWorkbook.Name Then
With GetObject(MyPath & MyName)
For Each sh In .Sheets
sh.Activate
Range("A2133").Select
ActiveSheet.Pictures.Insert("F:\材质单专用\材质单专用.png").Select
ActiveWindow.SmallScroll Down:=9
Selection.ShapeRange.IncrementTop 0.75
Range("N34").Select
Next
Windows(.Name).Visible = True
Application.PrintCommunication = True
Selection.PrintOut Copies:=1, Collate:=True
.Close True
End With
End If
MyName = Dir
Loop
Application.ScreenUpdating = True
MsgBox "恭喜,所有工作簿打印完成!"
End If
End Sub
|
|