I am trying to get the next line of data tag file, however because there are multiple lines with the same tag it is going through and taking the last one but I need the first one. Example tag file below.
Summary SA2100|7775555
Summary SUM100|9674555
Summary SUM100|8544555
Summary SUM100|8555554
From this it is taking 8555554 and not 7775555.
I was trying to put the first line in the if condition and set the string to be the next line is this possible ?
if Left(strLine, 14) = "Summary SA2100" Then
strSummary = mid(strNextLine, 16, 7)
End If
Is there a way to use StrNextLine or something similar ?
Thanks
