Private Sub cmdPrint_Click()
'' --------------------------------------------------------------------------------
'' Printing
'' --------------------------------------------------------------------------------
Dim i As Integer
Dim lItem As Long
Dim wsh As Worksheet
Dim ans As Boolean
ans = Application.Dialogs(xlDialogPrinterSetup).Show
If ans Then
i = tbxCopies.Value
Call Shell("rundll32 printui.dll,PrintUIEntry /e /n" & Application.ActivePrinter & ")")
MsgBox i & " copies will be printed.", vbInformation, "Info"
For lItem = 0 To lboRisks.ListCount - 1
If lboRisks.Selected(lItem) = True Then
Set wsh = ThisWorkbook.Worksheets("BRP Dashboard")
wsh.Range("R4").Value = lboRisks.Value
wsh.PrintOut Copies:=i
Set wsh = Nothing
End If
Next
Cells(5, 11).Activate
Unload Me
End Sub