1,216
社区成员
发帖
与我相关
我的任务
分享
'按打印机名称选定当前打印机'
Function SelectPrinter(ByVal DeviceName As String) As Boolean
Dim prt As Printer
For Each prt In Printers
If prt.DeviceName = DeviceName Then
Set Printer = prt
SelectPrinter = True
Exit Function
End If
Next
End Function