# 엑셀 영문과 한글을 분리하는 매크로

- 주소: https://duotone.co.kr/entry/%EC%97%91%EC%85%80-%EC%98%81%EB%AC%B8%EA%B3%BC-%ED%95%9C%EA%B8%80%EC%9D%84-%EB%B6%84%EB%A6%AC%ED%95%98%EB%8A%94-%EB%A7%A4%ED%81%AC%EB%A1%9C
- 글쓴이: 서기㏇
- 카테고리: OA·문서 작성
- 작성일: 2018-03-13
- 수정일: 2019-04-04

Sub 이름분리()

Dim i As Integer

Dim word As Integer

Dim rng As Range

Dim 행수 As Integer

행수 = Range("A1").CurrentRegion.Rows.Count

For Each rng In Range("a1").CurrentRegion.Offset(1, 0).Resize(행수 - 1, 1)

For i = 1 To Len(rng)

word = Asc(Mid(rng, i, 1))

If ((word >= 1 And word <= 500)) Then

Else

rng.Offset(0, 1) = Left(rng, i - 1)

rng.Offset(0, 2) = Right(rng, Len(rng) - i + 1)

Exit For

End If

Next

Next

Columns("b:c").AutoFit

End Sub
