SuperKoopa
Technical User
Hello Tek-Tips!
I've learned so much here, its been really great! I had what hopefully is a quick question.
So I several attachmate screens full of paragraphs of text. This text may or may not contain a certain value. I need each row ( rows 3 to 22) to be "scanned" for this text which is shorter than the column lengths. If the text exists then I need cell in Excel A1 to return "YES". Below I will provide an example to illustrate what I'm trying to do.
ATTACHMATE SESSION SCREEN 03/25/13 07:56:38
-----------------------------------------------------
THIS IS A SAMPLE PARAGRAPH REPRESENTING THE TEXT I NEED TO SEARCH IN. THE FOLLOWING IS THE TEXT I NEED "PULL ME!". THE REST OF THE TEXT WILL GO ON FOR SEVERAL SCREENS WHICH I CAN ALREADY ACCOUNT FOR.
So the code would need to look at each row and find "PULL ME!" on row 2, column 39 (or at whatever column it starts) and is 8 characters long. The text I need to pull is a constant value. The rows need to vary so im assuming it would start something like:
For nRow = 3 To 22
If Sess0.Screen.GetString(nRow, now sure how to account for row and length) = "PULL ME!" Then
ActiveSheet.Range("A1") = "Yes"
Else
Next nRow
End If
Forgive me if that is very incorrect (im sure theres some String code that should be there), but I just want to make sure I clearly express what I'm trying to do. I appreciate your time reading this!
I've learned so much here, its been really great! I had what hopefully is a quick question.
So I several attachmate screens full of paragraphs of text. This text may or may not contain a certain value. I need each row ( rows 3 to 22) to be "scanned" for this text which is shorter than the column lengths. If the text exists then I need cell in Excel A1 to return "YES". Below I will provide an example to illustrate what I'm trying to do.
ATTACHMATE SESSION SCREEN 03/25/13 07:56:38
-----------------------------------------------------
THIS IS A SAMPLE PARAGRAPH REPRESENTING THE TEXT I NEED TO SEARCH IN. THE FOLLOWING IS THE TEXT I NEED "PULL ME!". THE REST OF THE TEXT WILL GO ON FOR SEVERAL SCREENS WHICH I CAN ALREADY ACCOUNT FOR.
So the code would need to look at each row and find "PULL ME!" on row 2, column 39 (or at whatever column it starts) and is 8 characters long. The text I need to pull is a constant value. The rows need to vary so im assuming it would start something like:
For nRow = 3 To 22
If Sess0.Screen.GetString(nRow, now sure how to account for row and length) = "PULL ME!" Then
ActiveSheet.Range("A1") = "Yes"
Else
Next nRow
End If
Forgive me if that is very incorrect (im sure theres some String code that should be there), but I just want to make sure I clearly express what I'm trying to do. I appreciate your time reading this!