Thanks for the response. Here's what I came up with
Private Function ValidateVersion(strFileToCheck As String) As Boolean
Dim objXL As Excel.Application
Dim objWkb As Excel.Workbook
Dim objSht As Excel.Worksheet
Set objXL = New Excel.Application
Set objWkb = objXL.Workbooks.Open(strFileToCheck)
Set objSht = objWkb.Worksheets("tblResults")
If InStr(1, objSht.Cells(2, 28).Value, "2.5") Then
ValidateVersion = True
Else
ValidateVersion = False
End If
DoEvents
objXL.Quit
Set objSht = Nothing
Set objWkb = Nothing
Set objSht = Nothing
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.