Office Automation 을 할때 원하는 작업의 Property나 Method가 궁금 할 때 좀더 편하게(?) 찾는 방법입니다.
메크로 기능을 사용하는 것인데요...
위 그림에서 보이는 메뉴에서
새 매크로 기록을 선택한다음..
Automation할 작업을 한뒤에 저장을 누르신 다음에 메크로 메뉴를 고르시고..
그림과 같은 화면에서 편집을 누르시면...
작업했던 동작들이 아래와 같은 메크로로 나타나게 됩니다.
이것을 참조하여 Automation Programming을 해주시면 됩니다..^^
With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = ""
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
.LeftMargin = Application.InchesToPoints(0.75)
.RightMargin = Application.InchesToPoints(0.75)
.TopMargin = Application.InchesToPoints(1)
.BottomMargin = Application.InchesToPoints(1)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 300
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlLandscape
.Draft = False
.PaperSize = xlPaperLetter
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = 100
.PrintErrors = xlPrintErrorsDisplayed
End With
이 글과 관련있는 글을 자동검색한 결과입니다 [?]