How to read selected text in a pdf application

A

Alex St-Pierre

Hi!
I would like to know if there's a way to read the selected text in a windows
application?

Example: I would like to read all box of a pdf file (using tab and look at
the selection) and copy the contents of the box in an Excel Workbook. In the
pdf file, I can't make a copy. Is there a workaround?
Thank's
Alex

Dim myIE As Object
Set myIE = CreateObject("InternetExplorer.Application")
myIE.navigate http:\\... file.pdf
myIE.Visible = True
Dim dReturnValue As Double
dReturnValue = Shell("IEXPLORER.EXE", vbNormalFocus)
AppActivate dReturnValue
Application.SendKeys TabKey, True
sValue = Application.Selection 'Doesn't work...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top