|
* 답변하시는 분들께 도움이 되도록 자신의 환경을 아래 항목 옆에 기재해 주세요.
1. 엑셀 버전(95,97,2000,2002):
2. 윈도우즈의 버전(win95,win98,winME,winNT,win2000,winXP):
3. CPU (486,PentiumI/II/III/IV...):
4. RAM (32,64,128,256,512MB,1G...):
* 아래줄에 질문을 작성하세요 >>
Dim strTemp As String
Dim strNew As String
With 제조번호
strTemp = .Value
If Len(strTemp) = 12 Then
strNew = Application.WorksheetFunction.Substitute(strTemp, "-", "")
If IsNumeric(strNew) Then
If Mid$(strTemp, 5, 1) = "-" Then
ElseIf Mid$(strTemp, 10, 1) = "-" Then
Else
MsgBox "형식 오류"
End If
MsgBox "올바른 형식입니다!"
Else
MsgBox "형식 오류"
End If
Else
MsgBox "형식 오류"
End If
End With
이 코드는 님께서 저에게 조언을 주신겁니다....
그런데... 제가 해석이 안됩니다....
죄송합니다만.... 해석을 좀 부탁드릴까 합니다...
번거로우시겠지만.... 이해해주시고 부탁드립니다. |
|