×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Catch Highlighted line on Extra screen

Catch Highlighted line on Extra screen

Catch Highlighted line on Extra screen

(OP)
My first post, ever!

trying not to give away business property, I am using excel vba macro to attachmate EXTRA screen.


Result of code below is if the data (dataMatch) is found on the screen ("FD FIND"), the rows (row 2 - 23) are HIGHLIGHTED on the screen. For the screens I am working with, I expect only one row to be highlighted (or none).
How can I capture the line on the screen that is HIGHTLIGHTED (or multilple highlighted rows, for future reference) so that I can use Mid or Trim to extract specific data on that highlighted line?

The row/column indicator remains 01/03 where the command was put to do the FIND.

Currently I am using Do Loop to look at each row for a match of dataMatch.

Call sys.SendKeys("FD FIND " & dataMatch)
Call sys.SendKeys("<ENTER>")
sys.Wait = 200

RE: Catch Highlighted line on Extra screen

Hi,

So your "highlight" could be a used generated SELECTION that appears as highlighted, or it could be a programmed highlight of some flavor (some shaded background).

So what are we looking at?

RE: Catch Highlighted line on Extra screen

Sorry:

...user generated SELECTION...

RE: Catch Highlighted line on Extra screen

(OP)
Sorry for the delay. I got pulled away from this optional project.

My screen colors are black background, green protected and yellow enterable (line 1). When I do a "find", the found match is white.

RE: Catch Highlighted line on Extra screen

I never did anything like this on a screen.

I'm retired and have no access to the Extra VB HELP file to determine if there is a Selection object or method.

That's where I'd start looking, in HELP.

RE: Catch Highlighted line on Extra screen

Hello all! I' m new to this forum and I have the same problem. The find command is essential for the kind of work I do, and having a macro that can detect a resulting highlighted row, placing the cursor before it could help me greatly in automating a lot of things I am requested to do.
Thank you very much.

RE: Catch Highlighted line on Extra screen

Bileygr,

Welcome to Tek-Tips.

Please post your question in a new thread.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close