● 작업)VBA로 엑셀 리본메뉴에 사용자정의 탭,버튼 추가하기
♨ 카랜더 일정 :
링크
첨부
본문
● 작업)VBA로 엑셀 리본메뉴에 사용자정의 탭,버튼 추가하기
https://xlworks.net/custom-tab-button-add/
c:\Users\shimss\Downloads\VBA로_리본메뉴에_탭_버튼추가하기.zip
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) 파일저장
3) 파일 변경
d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm
을
d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm.zip
이름 확장자 변경
zip파일 확인
4)d:\sw\excel_매크로_리본에탭추가\customUI.xml 파일 생성
파일 저장해놓습니다
d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm.zip\_rels\.rels
작업 내용
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>
d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm.zip을d:\sw\excel_매크로_리본에탭추가\vba_모듈추가리본메뉴작업.xlsm로 변경
불러오기 합니다 .end |
뷰PDF 1,2
office view
관련자료
-
링크
-
첨부
댓글목록

농촌님의 댓글

공부 열심히 해 보겠습니다. 감사합니다.
-
일간 조회수
-
- 게시물이 없습니다.
-
-
주간 조회수
-
월간 조회수
-
-
● M2 커넥터 슬롯 정보 및 m2 ssd 구입시 정보 _조회수_댓글수( 196138 )
-
● 2024년 가격대+성능별 "미니PC 계급도"ㅣ이 중에서 구매하시면 됩니다!ㅣ구매가이드, 추천제품… _조회수_댓글수( 91949 )
-
● 컴퓨터 본체 디자인 SFF케이스(S300)인데 완성도가 꽤 좋은데요? _조회수_댓글수( 91801 )
-
● 반드시 필요한 것만 때려 박아서 속도가 개빠른 윈도우 Revi OS _조회수_댓글수( 91686 )
-
● GEEKOM IT13 2025 Edition 미니 PC 성능 실사용 리뷰 _조회수_댓글수( 44398 )
-
-
♥간단_메모글♥
-
등록일 07.28
-
등록일 06.18
-
등록일 05.20
-
등록일 03.12가입인사 드립니다댓글 3
-
등록일 04.15가입 인사드립니다.댓글 8
최근글
-
등록일 08.12
새댓글
-
등록자 루츠 등록일 08.13
-
등록자 rusical 등록일 08.13
-
등록자 Coizz 등록일 08.13
-
등록자 주작남 등록일 08.11
-
등록자 wldn 등록일 08.11
오늘의 홈 현황
QR코드
☞ QR코드 스캔은 kakao앱 자체 QR코드