Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screen Scrapeing into MSWord 1

Status
Not open for further replies.

BlueScreenOD

Programmer
Nov 18, 2005
4
US
use a thin client program at my work called WRQ which has VBA built into it. I'm attempted to scrape information off of my screen and place it into a word document.
I've figured out how to add simple text to a word doc by using the code:

Dim Word As Word.Application
Set Word = CreateObject("Word.Application")

Word.Visible = True
Word.Documents.Add
Word.Selection.TypeText Text:="baaaah"

But i'm having trouble trying to figure out how to add information into a templated word doc. I have a form that looks like this:

Name of Claimant: ___________
Date of Accident: ___________

And I want to add the infmation where the underscored line is. Does anyone know how this is done? I'm not to familiar with VBA, and i'm kind of learning as I go
 
Have a look at the FormFields collection.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
There are some FAQ on formfields on this site.

Gerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top