我在 VBA 中有一个大型用户表单,表单上已经有一个“打印”选项,可以打印一半的表单。
请告诉我如何在两页内打印横向和整个表格。
Thanks
Userform PrintForm 方法不提供任何选项。另一方面,工作表提供了无数的选项。
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
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)