대한민국에서 S/W 개발자로 살아가기..
by 이지스
rss

skin by 이글루스
Automation할때 편한 Tip...
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

이 글과 관련있는 글을 자동검색한 결과입니다 [?]

by 이지스 | 2007/11/30 13:26 | 트랙백
트랙백 주소 : http://irasis.egloos.com/tb/3972473
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
※ 로그인 사용자만 덧글을 남길 수 있습니다.
<< 이전 다음 >>