ich habe eine UserForm und möchte diese auf DinA4 Querformat drucken.
so habe ich das gemacht.
Kann ich hier auch das Format A4 Querformat bestimmen?
Wenn ja wie ?
Sub Ausgabe()
UserForm2.PrintForm
End Sub
Danke Norbert
Sub Ausgabe()
UserForm2.PrintForm
End Sub
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdPrint_Click()
Application.ScreenUpdating = False
keybd_event VK_SNAPSHOT, 1, 0, 0
Workbooks.Add 1
ActiveSheet.Range("A1").Select
Application.Wait Now + TimeValue("00:00:01")
ActiveSheet.PasteSpecial _
Format:="Bitmap", _
Link:=False, _
DisplayAsIcon:=False
With ActiveSheet
.PageSetup.Orientation = xlLandscape
.PageSetup.LeftHeader = "Meine UserForm"
.PrintOut
End With
ActiveWorkbook.Close False
Application.ScreenUpdating = True
End Sub
Private Sub CommandButton7_Click()
cmdPrint_Click
End Sub
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdPrint_Click()
Application.ScreenUpdating = False
keybd_event VK_SNAPSHOT, 1, 0, 0
Workbooks.Add 1
ActiveSheet.Range("A1").Select
Application.Wait Now + TimeValue("00:00:01")
ActiveSheet.PasteSpecial _
Format:="Bitmap", _
Link:=False, _
DisplayAsIcon:=False
With ActiveSheet
.PageSetup.Orientation = xlLandscape
.PageSetup.LeftHeader = "Meine UserForm"
.PrintOut
End With
ActiveWorkbook.Close False
Application.ScreenUpdating = True
End Sub