How fit a large userform to print in VBA

后端 未结 2 1607
梦如初夏
梦如初夏 2021-01-28 20:38

I have a large user form in VBA, Already I have a \"print\" option on the form which prints half of the form.

Please let me know how I can print landscape and the whole

2条回答
  •  误落风尘
    2021-01-28 21:16

    The Userform PrintForm method doesn't offer any options. Worksheet's on the other hand provide a myriad of options.

    I would use AltPrintScreen to copy the Userform's image to the Windows ClipBoard and then paste it to a worksheet as an image.

    Private Sub btnCopyUserformBitMap_Click()
        Application.SendKeys "(%{1068})"
    
        DoEvents
        Application.Wait Now + TimeSerial(0, 0, 1)
    
        Worksheets("Print Userform").Range("A1").PasteSpecial
    End Sub
    

提交回复
热议问题