[기초방] VBA 100제 #36 [ 가로정렬하기 ]
더보기 Sub 기초방36() Dim rngAll As Range: Set rngAll = [c7:h7] Dim Vtemp: Vtemp = Split([c10], ", ") Dim bln As Boolean Dim C&, str$, cnt&: cnt = 65 Do If TypeName(Application.Match(Chr(cnt), IIf(bln = False, rngAll, Vtemp), 0)) "Error" Then If bln = True Then For C = 1 To Len([c10]) '= 기초방 36-1번 문제 해법 C = InStr(C, [c10], Chr(cnt)): If C = 0 Then Exit For str = IIf(str = "", Chr(cnt), str & "," & Chr..
2023. 3. 5.