버튼 삭제
Sub Clear_ButtonsActiveSheet()
Dim I As Long
Dim xOLE As Object
On Error Resume Next
ActiveSheet.Buttons.Delete
For Each xOLE In ActiveSheet.OLEObjects
If TypeName(xOLE.Object) = "CommandButton" Then
xOLE.Delete
End If
Next
End Sub
실행 전 확인 메세지
Sub Check_before_execute()
CarryOn = MsgBox("실행하시겠습니까?", vbYesNo, "Run Macro")
If CarryOn = vbYes Then
'put rest of code here
End If
End Sub
'파이썬 & 엑셀 > 엑셀' 카테고리의 다른 글
[엑셀] vlookup, index, match, indirect, address, offset 정리 (0) | 2022.05.01 |
---|---|
[엑셀]VBA 매크로 단축키 설정/다른 파일에서 매크로 사용 (0) | 2021.08.12 |
[엑셀] VBA 이미지 정렬/이미지 사이즈 맞추기 (0) | 2021.08.11 |
[엑셀] VBA 이미지 원래크기 정렬 두줄 (0) | 2021.08.08 |
[엑셀] 숫자 중복제거, 정렬 (0) | 2021.07.31 |