How fit a large userform to print in VBA

后端 未结 2 1576
梦如初夏
梦如初夏 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
    
    0 讨论(0)
  • 2021-01-28 21:16

    PrintForm uses the default printer you have set on your system and those default settings. Change the default to landscape and see if that works for you.

    0 讨论(0)
提交回复
热议问题