Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

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

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...This was the ONLY place that I could find information that I could use to resolve the problem. So thanks once again to member TomSark and the SQL forum!..."

Geography

Where in the world do Tek-Tips members come from?

Capture non selectable text in IE Web e-mail OWA

mnolting (Programmer)
11 Jul 12 17:24
I need to capture text in an Outlook web app IE e-mail program.
The text to be captured is the highlighted e-mail (which is yellowish / orange)
I need the VB application to run formless / in the background and return to the calling program the text of the highlighted e-mail.

I see a lot of threads about capturing, however, it is always Selected text. The text to be captured will be Highlighted, not Selected, there is no way to select it. I will have a form running with a button on it named "Capture text of Highlighted e-mail". When clicked, it will capture the text of the Highlighted e-mail, which is the name of the sender and the subject line.

Thanks for your help

HughLerwill (Programmer)
11 Jul 12 18:03
I have the following code which goes down the 'inspector' route, I think you may need to follow the 'explorer' route...

CODE -->

Dim OlObj As Object
                On Error Resume Next
                Set OlObj = GetObject(, "Outlook.Application")
                If Err Then
                    On Error GoTo ErrHandler
                    Set OlObj = CreateObject("Outlook.Application")
                End If
                On Error GoTo ErrHandler
                                
                With OlObj
                    If TypeName(.ActiveWindow) = "Inspector" Then
                        'Outlook is displaying a single email as opposed to "Explorer" when displaying a folder containing a list of emails
                        With .ActiveInspector.CurrentItem
                            'blah 
mnolting (Programmer)
11 Jul 12 19:09
Hugh,
The application I am using is not Outlook, it is Internet Explorer at a Outlook web page.
The title bar is "my name Outlook web app Microsoft"
It shows a number of e-mails on the page but only one is highlighted. That is the one I need the subject line text.
Mike

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!

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