Skip to content

Instantly share code, notes, and snippets.

@esctabcapslock
Last active March 16, 2022 04:27
Show Gist options
  • Save esctabcapslock/5efd9e14de571b34f99077bcb03cc5fe to your computer and use it in GitHub Desktop.
Save esctabcapslock/5efd9e14de571b34f99077bcb03cc5fe to your computer and use it in GitHub Desktop.

개요

  • 엑셀로 일정 관리하다가, 필요해짐. 그날 할일을 한 셀에 합치고 싶었음

기술적 내용

  • 단축키: alt + F11
  • 따로 저장의 개념이 없음
  • 확장자는 따로 xlsm 사용해야함.

구현결과

  • 사용자 지정 함수를 다음과 같이 만들 수 있음
Function 문자열합치기(rng As Range)
    sum1 = ""
    Dim cell As Range
    For Each c In rng
        Dim Text As String
        Text = c.Value
        If Len(Text) Then
            sum1 = sum1 + Text + " "
        End If
    Next c
    문자열합치기 = sum1
    
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment