1
我有下面的代碼的問題,我對代碼的粗體線得到一個類型不匹配錯誤:運行時錯誤13:類型不匹配
Private Sub CommandButton3_Click()
Application.ScreenUpdating = False
Dim p
Dim ActivePrinter
Dim Sheets
p = Application.ActivePrinter
ActivePrinter = ("Send to OneNote 2010")
**Sheets(Array("R-Overview", "R-Savings", "R-Table")).PrintOut , , 1**
End Sub
我在倒數第二行得到「運行時錯誤'1004':應用程序定義錯誤或對象定義錯誤」。 –
我只是測試它,它的工作原理。 –
嘗試我剛剛更新的第二種方法。 –