sub 특수문자공백지우기()
Dim i As Long
i = 0
Do While Range("a3").Offset(i, 0).Value <> ""
Range("a3").Offset(i, 0).Value = RemoveSpecial(Range("a3").Offset(i, 0).Value)
Range("a3").Offset(i, 0).Value = Replace(Range("a3").Offset(i, 0).Value, "매장선택대", "")
i = i + 1
Loop
end sub
Function RemoveSpecial(Str As String) As String
'updatebyExtendoffice 20160303
Dim xChars As String
Dim i As Long
xChars = "#$%()^*&[]- "
For i = 1 To Len(xChars)
Str = Replace$(Str, Mid$(xChars, i, 1), "")
Next
RemoveSpecial = Str
End Function
취합.xls
0.06MB
'컴퓨터 > 엑셀' 카테고리의 다른 글
VBA 기본 명령어들(선그리기, 색상지정, 양식지정) (0) | 2018.06.27 |
---|---|
조건부서식-테두리-셀색 (0) | 2018.06.22 |
address(1,1,1) (0) | 2018.06.20 |
파일선택창 띄우기 (0) | 2018.06.20 |
공부 (0) | 2018.06.20 |