728x90
엑셀 색칠놀이 Ver003-001(+애니메이션 6컷) 다운로드 |
구버젼 |
Option Explicit Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range) If Range("ac2") = "off" Then Exit Sub Application.ScreenUpdating = 0 If Intersect(Target, Range("z8:ac21")) Is Nothing _ Then GoTo HerePaint Range("z3:ac4").Interior.ColorIndex = Target.Interior.ColorIndex HerePaint: If Intersect(Target, Range("b2:x24")) Is Nothing _ Then Exit Sub Target.Interior.ColorIndex = Range("z3:ac4").Interior.ColorIndex Range("a1:y1").Interior.ColorIndex = 2 Range("a2:a28").Interior.ColorIndex = 2 Range("y2:y28").Interior.ColorIndex = 2 Range("b25:x28").Interior.ColorIndex = 2 Application.CutCopyMode = False Application.ScreenUpdating = 1 End Sub |
Sub 색상판초기화() Range("Z3:AC4").Copy Range("AH3:AK4").Select ActiveSheet.Paste Range("AH8:AK21").Copy Range("Z8").Select ActiveSheet.Paste Range("AH3:AK4").Copy Range("Z3:AC4").Select ActiveSheet.Paste Application.CutCopyMode = False End Sub |
Sub 저장하기() Application.DisplayAlerts = False ActiveWorkbook.Save Application.DisplayAlerts = True End Sub |
작은아이 작품 |
더보기
접은글
색칠놀이 Ver002.001 |
구버전 색칙놀이 Ver001 |
엑셀 work 다운로드 |
Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Intersect(Target, Range("a2:x24")) Is Nothing _ Then Exit Sub Dim C1, C2, C3, C0 As Long C1 = Range("aa6").Interior.ColorIndex C2 = Range("aa7").Interior.ColorIndex C3 = Range("aa8").Interior.ColorIndex C0 = -4142 With Target.Interior If .ColorIndex = C0 Then .ColorIndex = C1 Else If .ColorIndex = C1 Then .ColorIndex = C2 Else If .ColorIndex = C2 Then .ColorIndex = C3 Else .ColorIndex = C0 End If End If End If End With Range("ae6").Select End Sub |
칼리의 창작 로봇 |
칼리의 트랜스모퍼 2 |
728x90
'■ Excel > ㅡExcel Work' 카테고리의 다른 글
엑셀 시험 점수배점 및 비율점검 (2) | 2020.05.19 |
---|---|
엑셀 자리 배치 자동, 무작위 (3) | 2020.05.08 |
엑셀 이름 무작위로 만들기 (0) | 2020.05.01 |
엑셀 수학ㅡ유클리드 알고리즘(두 수의 비 구하기) (0) | 2020.03.26 |
엑셀 수학ㅡ4차 방정식 알고리즘 풀기 4차 계수1 (0) | 2020.02.05 |