標題:
[發問]
打印問題
[打印本頁]
作者:
jomeow
時間:
2018-2-6 16:09
標題:
打印問題
請問一下.. 我已設好了一個工作表1的打印設定..
請問我可不可以把工作表1的打印設定.. 復製到工作表2呢
先謝謝各位大大幫忙!!
作者:
ikboy
時間:
2018-2-7 14:27
先點選已設好的工作表1, 表住Ctrl點選其他工作表(可以多個工作表), 輸入指令:
Alt+P,sp,Enter, 完成.
作者:
jomeow
時間:
2018-2-7 16:22
回復
2#
ikboy
謝謝你呀... 我成功了.. 可以復制到第二張工作表..
問多一條題.. 如果是想由 file A的工作表打印格式, 復製到FILE B的工作表..
可以嗎?
因為每月都會由供應商給我一次.. 內容大致一樣,
我要每次都要重新設定打印設定..
謝謝各位大大再次幫忙!!
作者:
ikboy
時間:
2018-2-8 14:31
try this:
Sub zz()
Application.PrintCommunication = False
With ActiveSheet.PageSetup
.AlignMarginsHeaderFooter = ThisWorkbook.Sheets(1).PageSetup.AlignMarginsHeaderFooter
.BlackAndWhite = ThisWorkbook.Sheets(1).PageSetup.BlackAndWhite
.BottomMargin = ThisWorkbook.Sheets(1).PageSetup.BottomMargin
.CenterFooter = ThisWorkbook.Sheets(1).PageSetup.CenterFooter
.CenterHeader = ThisWorkbook.Sheets(1).PageSetup.CenterHeader
.CenterHorizontally = ThisWorkbook.Sheets(1).PageSetup.CenterHorizontally
.CenterVertically = ThisWorkbook.Sheets(1).PageSetup.CenterVertically
.DifferentFirstPageHeaderFooter = ThisWorkbook.Sheets(1).PageSetup.DifferentFirstPageHeaderFooter
.Draft = ThisWorkbook.Sheets(1).PageSetup.Draft
.EvenPage.CenterFooter.Text = ThisWorkbook.Sheets(1).PageSetup.EvenPage.CenterFooter.Text
.EvenPage.CenterHeader.Text = ThisWorkbook.Sheets(1).PageSetup.EvenPage.CenterHeader.Text
.EvenPage.LeftFooter.Text = ThisWorkbook.Sheets(1).PageSetup.EvenPage.LeftFooter.Text
.EvenPage.LeftHeader.Text = ThisWorkbook.Sheets(1).PageSetup.EvenPage.LeftHeader.Text
.EvenPage.RightFooter.Text = ThisWorkbook.Sheets(1).PageSetup.EvenPage.RightFooter.Text
.EvenPage.RightHeader.Text = ThisWorkbook.Sheets(1).PageSetup.EvenPage.RightHeader.Text
.FirstPage.CenterFooter.Text = ThisWorkbook.Sheets(1).PageSetup.FirstPage.CenterFooter.Text
.FirstPage.CenterHeader.Text = ThisWorkbook.Sheets(1).PageSetup.FirstPage.CenterHeader.Text
.FirstPage.LeftFooter.Text = ThisWorkbook.Sheets(1).PageSetup.FirstPage.LeftFooter.Text
.FirstPage.LeftHeader.Text = ThisWorkbook.Sheets(1).PageSetup.FirstPage.LeftHeader.Text
.FirstPage.RightFooter.Text = ThisWorkbook.Sheets(1).PageSetup.FirstPage.RightFooter.Text
.FirstPage.RightHeader.Text = ThisWorkbook.Sheets(1).PageSetup.FirstPage.RightHeader.Text
.FirstPageNumber = ThisWorkbook.Sheets(1).PageSetup.FirstPageNumber
.FitToPagesTall = ThisWorkbook.Sheets(1).PageSetup.FitToPagesTall
.FitToPagesWide = ThisWorkbook.Sheets(1).PageSetup.FitToPagesWide
.FooterMargin = ThisWorkbook.Sheets(1).PageSetup.FooterMargin
.HeaderMargin = ThisWorkbook.Sheets(1).PageSetup.HeaderMargin
.LeftFooter = ThisWorkbook.Sheets(1).PageSetup.LeftFooter
.LeftHeader = ThisWorkbook.Sheets(1).PageSetup.LeftHeader
.LeftMargin = ThisWorkbook.Sheets(1).PageSetup.LeftMargin
.OddAndEvenPagesHeaderFooter = ThisWorkbook.Sheets(1).PageSetup.OddAndEvenPagesHeaderFooter
.Order = ThisWorkbook.Sheets(1).PageSetup.Order
.Orientation = ThisWorkbook.Sheets(1).PageSetup.Orientation
.PrintArea = ThisWorkbook.Sheets(1).PageSetup.PrintArea
.PaperSize = ThisWorkbook.Sheets(1).PageSetup.PaperSize
.PrintComments = ThisWorkbook.Sheets(1).PageSetup.PrintComments
.PrintErrors = ThisWorkbook.Sheets(1).PageSetup.PrintErrors
.PrintGridlines = ThisWorkbook.Sheets(1).PageSetup.PrintGridlines
.PrintHeadings = ThisWorkbook.Sheets(1).PageSetup.PrintHeadings
.PrintTitleColumns = ThisWorkbook.Sheets(1).PageSetup.PrintTitleColumns
.PrintTitleRows = ThisWorkbook.Sheets(1).PageSetup.PrintTitleRows
.RightFooter = ThisWorkbook.Sheets(1).PageSetup.RightFooter
.RightHeader = ThisWorkbook.Sheets(1).PageSetup.RightHeader
.RightMargin = ThisWorkbook.Sheets(1).PageSetup.RightMargin
.ScaleWithDocHeaderFooter = ThisWorkbook.Sheets(1).PageSetup.ScaleWithDocHeaderFooter
.TopMargin = ThisWorkbook.Sheets(1).PageSetup.TopMargin
If ThisWorkbook.Sheets(1).PageSetup.Zoom Then .Zoom = ThisWorkbook.Sheets(1).PageSetup.Zoom
End With
Application.PrintCommunication = True
End Sub
複製代碼
歡迎光臨 麻辣家族討論版版 (http://forum.twbts.com/)