2016-08-23 61 views

回答

1

Userform PrintForm方法不提供任何選項。另一方面,工作表提供了無數的選項。

我會用Alt鍵PRINTSCREEN到用戶窗體的圖像複製到Windows剪貼板,然後將其粘貼到工作表爲圖像。

enter image description here

Private Sub btnCopyUserformBitMap_Click() 
    Application.SendKeys "(%{1068})" 

    DoEvents 
    Application.Wait Now + TimeSerial(0, 0, 1) 

    Worksheets("Print Userform").Range("A1").PasteSpecial 
End Sub 
+0

我很感激。在以下鏈接中:http://www.utteraccess.com/forum/fit-form-page-printing-t650323.html他們建議創建一個報告,你有什麼想法。 –

+0

你使用MS Access嗎? – 2016-08-23 04:18:23

+0

不,我正在使用excel VBA。 –