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...
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...