Mate, I was hoping that you will replace the following part of the code with the printout code:
.....................
<Code for printing a specified Print Area>
.....................
Nevermind, try this instead:
Private Sub cmdPrint_Click()
ThisWorkbook.Sheets("Sheet4").Cells(1, 4) = ComboBox1.Text
Dim l As Long
With ThisWorkbook.Worksheets("Sheet3") 'replace Sheet3 with actual worksheet name
For l = 10000 To 1 Step -1 'moving from last row up
If .Range("A" & l) <> "" Then 'find the cell that has something filled
.PageSetup.PrintArea = "$A$1:$M$" & l 'treat that as the last row for print range
.PrintOut Copies:=1, Collate:=True, IgnorePrintAreas:=False
Exit For
End If
Next l
End With
End Sub
Also see attached - Teletype Form 3.xlsm
HTH!
Bookmarks