티스토리 뷰
MS Office Word VBA를 이용하여 본문 복사 & 붙여넣기를 제한하는 방법
VBA 모듈
Sub CtrlC_Clear()
' Enable Ctrl + C & Ctrl + V
FindKey(BuildKeyCode(wdKeyControl, wdKeyC)).Clear
FindKey(BuildKeyCode(wdKeyControl, wdKeyV)).Clear
End Sub
Sub CtrlC_Disable()
' Disable Ctrl + C & Ctrl + V
FindKey(BuildKeyCode(wdKeyControl, wdKeyC)).Disable
FindKey(BuildKeyCode(wdKeyControl, wdKeyV)).Disable
End Sub
[참고사이트]
BuildKeyCode 方法http://www.cnxos.com/document/office/VBAWD10/html/womthBuildKeyCode.htm
Sub Disable_Right_Click()
Application.CommandBars.AdaptiveMenus = False
End Sub
Sub Enable_Right_Click()
Application.CommandBars.AdaptiveMenus = True
End Sub
http://vbadud.blogspot.kr/2007/04/disable-right-click.html
'소프트웨어' 카테고리의 다른 글
[PDF] 인쇄 제한 풀기 (0) | 2019.10.24 |
---|---|
[Outlook] 아웃룩 Cached Mode 사용시 서버 메일 클릭 링크가 사라진 경우 (0) | 2019.10.24 |
[Python] Could not find a version that satisfies the requirement prepher (from versions: )No matching distribution found for prepher (0) | 2018.04.18 |
[Word VBA-2] MS Office Word 에서 Print(인쇄)와 Save(저장), Save As(다른이름 저장)을 제어 (0) | 2017.12.22 |
[라이선스] Windows (0) | 2017.08.29 |
댓글