antonio.manoj.derose
Registered User.
- Local time
- Today, 16:58
- Joined
- Jul 4, 2013
- Messages
- 62
Hi Folks,
Please be good enough to help me in the below code, as I am getting to go into the MsgBox, as it should not, after if it should goto End If.
If Mid(fileName, InStrRev(fileName, "\") + 1, 5) = "Fixed" Or Mid(fileName, InStrRev(fileName, "\") + 1, 6) <> "Mobile" Then
MsgBox "Invalid filename to start with, Files to be started with Fixed or Mobile", vbCritical, "Invalid File Name"
Exit Function
End If
Thanks,
Antonio
Please be good enough to help me in the below code, as I am getting to go into the MsgBox, as it should not, after if it should goto End If.
If Mid(fileName, InStrRev(fileName, "\") + 1, 5) = "Fixed" Or Mid(fileName, InStrRev(fileName, "\") + 1, 6) <> "Mobile" Then
MsgBox "Invalid filename to start with, Files to be started with Fixed or Mobile", vbCritical, "Invalid File Name"
Exit Function
End If
Thanks,
Antonio