AW: Druck ausgewählter Dateien
23.08.2019 16:30:04
Nepumuk
Hallo,
teste mal:
Option Explicit
Private Declare Function ShellExecuteA Lib "shell32.dll" ( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) As Long
Private Const SW_HIDE As Long = 0
Public Sub Drucken()
Dim lngRow As Long
For lngRow = 2 To Cells(Rows.Count, 4).End(xlUp).Row
If Cells(lngRow, 4).Value = "x" Then _
Call ShellExecuteA(Application.hwnd, "PRINT", Cells(lngRow, 3).Value, _
vbNullString, vbNullString, SW_HIDE)
Next
End Sub
Gruß
Nepumuk