Your technology certification is waiting. Enroll in Cloud Class ®
Public Function ContainsDate(ByVal Text As String) As Boolean
Dim Parts As Variant
Dim Item As Integer
Dim Found As Boolean
Parts = Split(Text & " ", " ")
For Item = LBound(Parts) To UBound(Parts)
If IsDate(Parts(Item)) Then
Found = True
ContainsDate = Found
Open in new window
This course teaches how to install and configure Windows Server 2012 R2. It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).
since there is no way of controlling what clients type in
My program needs to check if there is a date in the filename AND then compare it to the date within the file. Date in the file and date in the name have to be the same, otherwise it goes into an error log file.
1st - there will be no agreed format with the clients, because i know it is possible to write code which will pick out the date from a random string.
I am sending a survey Excel file to client's, which they are completing daily.
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.