Hi,
I'm looking for one of the following characters "C","D","M","V","AB","AD","AE" in Column 4, beginning with row 9 to 23, then get the corresponding string in Column 34.
Isn't there a better way to write the following code?
Here's my coding:
For x = 9 To 23 'row
For y = 34 To 34 'col
If Sess0.Screen.GetString(x, 4, 1) = "C" Or Sess0.Screen.GetString(x, 4, 1) = "D" Or Sess0.Screen.GetString(x, 4, 1) = "M" Or Sess0.Screen.GetString(x, 4, 1) = "V" Or Sess0.Screen.GetString(x, 4, 2) = "AB" Or Sess0.Screen.GetString(x, 4, 2) = "AE" Or Sess0.Screen.GetString(x, 4, 2) = "AE" Then
Lead = Sess0.Screen.GetString(x, y, 7)
End If
thanks
zach
I'm looking for one of the following characters "C","D","M","V","AB","AD","AE" in Column 4, beginning with row 9 to 23, then get the corresponding string in Column 34.
Isn't there a better way to write the following code?
Here's my coding:
For x = 9 To 23 'row
For y = 34 To 34 'col
If Sess0.Screen.GetString(x, 4, 1) = "C" Or Sess0.Screen.GetString(x, 4, 1) = "D" Or Sess0.Screen.GetString(x, 4, 1) = "M" Or Sess0.Screen.GetString(x, 4, 1) = "V" Or Sess0.Screen.GetString(x, 4, 2) = "AB" Or Sess0.Screen.GetString(x, 4, 2) = "AE" Or Sess0.Screen.GetString(x, 4, 2) = "AE" Then
Lead = Sess0.Screen.GetString(x, y, 7)
End If
thanks
zach