- 帖子
- 45
- 主題
- 1
- 精華
- 0
- 積分
- 51
- 點名
- 0
- 作業系統
- windows 7
- 軟體版本
- office 2003
- 閱讀權限
- 20
- 註冊時間
- 2013-4-16
- 最後登錄
- 2013-12-30
|
回復 2# ML089
另一個post抄來- Sub print123() ' 選取列印
- Dim RNG As Range, address As String
- Set RNG = Application.InputBox("請輸入 列印範圍", "範圍", address, , , , , 8)
- ActiveSheet.PageSetup.PrintArea = RNG.address
- ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
- IgnorePrintAreas:=False
- End Sub
複製代碼 |
|