Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Exporting Data Into Word With Vba


  • Please log in to reply
No replies to this topic

#1 BlueScreenOD

BlueScreenOD

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:02:11 PM

Posted 18 November 2005 - 09:18 AM

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

BC AdBot (Login to Remove)

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users