새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


● 작업)VBA로 엑셀 리본메뉴에 사용자정의 탭,버튼 추가하기

♨ 카랜더 일정 :
  • 링크

  • 첨부

  • 컨텐츠 정보

    본문

    ● 작업)VBA로 엑셀 리본메뉴에 사용자정의 탭,버튼 추가하기

    https://xlworks.net/custom-tab-button-add/


    c:\Users\shimss\Downloads\VBA로_리본메뉴에_탭_버튼추가하기.zip

    3232235521_1666488061.521.png


    1) 파일하나  만들어 alt + f11 하여 아래내용 모듈에 추가 저장


    Sub loadCustomTabOfRibbon(ribbon As IRibbonUI)
     
    '//엑셀이 시작되면 사용자정의 탭을 활성화시킨다.
    On Error Resume Next
    ribbon.ActivateTab "myTabId001"
     
    End Sub
    Sub previewFromRibbon(control As IRibbonControl)
    '//리본의 사용자정의탭에 추가한 버튼을 클릭하면 실행되는 콜백프로시저
     
    MsgBox "미리보기가 클릭되었습니다!"
     
    End Sub
     
    Sub aboutFromRibbon(control As IRibbonControl)
    '//리본의 사용자정의탭에 추가한 버튼을 클릭하면 실행되는 콜백프로시저
     
    MsgBox "확인! 버튼이 클릭되었습니다!"
     

    End Sub

    2) 파일저장

     3232235521_1666488623.0109.png



    3) 파일 변경

    d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm

    을 

    d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm.zip

    이름  확장자 변경

    zip파일 확인



    4)d:\sw\excel_매크로_리본에탭추가\customUI.xml 파일 생성

     3232235521_1666488819.6454.png

    파일 저장해놓습니다


    d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm.zip\_rels\.rels


    3232235521_1666495816.2651.png


    작업 내용

    d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm

    을 불러옵니다

    d:\sw\excel_매크로_리본에탭추가\.rels
    d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm.zip\_rels\.rels

    복사



    d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm.zip\_rels\.rels

    을 열어 보면

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

    <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>



    여기에

    <Relationship Id="myRibbonCustomTabId001" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml"/>

    </Relationships>의 앞단에 추가

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

    <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/><Relationship Id="myRibbonCustomTabId001" Type="http://schemas.microsoft.com/office/2006/relationships/ui/extensibility" Target="customUI/customUI.xml"/>
    </Relationships>

    3232235521_1666495859.1141.png


    3232235521_1666496030.197.png


    d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm.zip

    d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm

    로 변경

    불러오기 합니다

    3232235521_1666496297.5449.png



    .end


    [ 추가 정보 ... 더보기) ]
    뷰PDF 1,2



    office view

    관련자료

    댓글목록

    profile_image

    농촌님의 댓글

    no_profile 농촌 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 아이피 (1.♡.176.132) 작성일

    공부 열심히 해 보겠습니다. 감사합니다.

    목록

    새창 작성 수정 목록 링크 Edit G카랜다 HDD HDD HDD 게시물 주소 복사


    • 일간 조회수
        • 게시물이 없습니다.
    • 주간 조회수
        • 게시물이 없습니다.
    • 월간 조회수
        • 게시물이 없습니다.


    Total 1,081 / 23 Page
    [ 마우스 우측메뉴 만들기 ]

    \r\n1.시작단추 실행 regedit.exe 실행2.HKEY_CLASSES_ROOT<*<shell 을 여신후3.shell 우클릭 새…

    [ 원격으로pc 부팅 공유기 설정 어플사용 ]

    ###\r\n방어용사의 블로그\r\nhttp://m.blog.naver.com/PostView.nhn?blogId=daniel331&logNo=…

    [ Internet Explorer 11을 7, 8, 9, 10 버전으로 인식시키는 방법 ] 댓글 4

    Internet Explorer 11을 7, 8, 9, 10 버전으로 인식시키는 방법출처 링크참조UserAgentSelector.applicat…

    [ torrent 터랜토 검색 torrenser1.0.0_토랜토검색 utorrenser_bugfix.exe ] 댓글 8

    torrent 터랜토 검색 torrenser1.0.0_토랜토검색 utorrenser_bugfix.exe■ 11q.kr은 정보를 찾아 공유 합니다…

    [ 배치파일(BAT) 명령어 ] 댓글 7

    \r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n배치파일(BAT) \r\n명령어\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\…

    [ 너무나 간편한 좋은 알람/Alarm.zip ]

    >>너무나 간편한 좋은 알람/Alarm.zip■ 11q.kr은 정보를 찾아 공유 합니다.https://11q.kr https://11…

    [ SmartFTP ]

    >현재 위치 :홈클라이언트특징클라이언트다운로드특징판스크린 샷매수지금 주문FTP 라이브러리다운로드샘플설명서매수지원자습서기술 자료포럼고객 영역…

    [ windows 10 10041 ver update ( 10036 to 10041로 업데이트하기) ]

    windows 10 10041 ver update ( 10036 to 10041로 업데이트하기)1) 실행창에서 설정 입력2) 고급설정3) 빠름 …

    [ Windows81DreamesV9PE_DREAM PE 2015 V9.7z 및 Grub4dos_install로… ] 댓글 27

    ♠Windows81DreamesV9PEWindows81DreamesV9PE_DREAM PE 2015 V9.7z♠ 첨부 iso 파일은 dream …

    [ 윈도우 가 아무것도 하지 않는데 CPU 속도가 30% 이상 나올시 1 ]

    제 컴퓨터에서는 WINDOWS UPDATE가 문제이네요그리고 윈도우 업데이트 방법및 끄기 고 설정==================== 아래 정보…

    [ 윈도우 자체 스티커메모 사용하기및 Stickies memo 윈도우11의 스티커메모 ]

    윈도우 자체 스티커메모 사용하기 바탕화면에 메모모아 기록 하세요윈도우 검색에 엡에서 STICK 또는 스티커 또는 stick*** 입력 메모장을 …

    [ 윈도우10 TP에서 기본관리자 계정 사용하기 ]

    ♠윈도우10 TP에서 기본관리자 계정 사용하기 (시작 버튼 미동작 문제)팁 1. 기본 관리자 계정 설정 방법기존 윈도우 7/8과 같습니다.cmd…

    [ autocad 2016 한글 언어팩 설치 방법 / 모든버전 동일 ] 댓글 3

    ♠ autocad (2016) 모든 영어버전을 설치후 한글 오토캐드로 변경은 언어 팩을 다음과같이 사이트에서 다운후 설치 하면영어 /한글 버전 …

    [ USB HDD 하드 복구 검사 및 지워지지 않는 파일 정리 명령어 디스크 검사하기 ] 댓글 1

    USB HDD 하드 복구 검사 및 지워지지 않는 파일 정리 명령어 디스크 검사하기예) D 드라이브 검사 하기C:\Windows\system32&…



    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-08-03 02:28:37

    오늘의 홈 현황


    • 현재 접속자♨ 354 명
    • 오늘 가입자※ 1 명
    • 어제 가입자※ 2 명
    • 주간 가입자※ 13 명
    • 오늘 방문자 584 명
    • 어제 방문자 1,627 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,470,116 명
    • 전체 게시물※ 8,732 개
    • 전체 댓글수※ 24,951 개
    • 전체 회원수 11,148 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑