Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

Exporting Text from VB to Word

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 1 posts
I have a VB program I created in the office VB editor that has forms that people fill in information in the text boxes.

How do I take those text boxes and export it out into the word doc?


Add on: I found that if I do ThisDocument.Range.Text = "Hello" & ThisDocument.Range.Text

It screwes up the entire formatting of the doc.

I need to be able to just add 1 page of the VB information to the first of this doc without screwing it all up.

Edited by mikemar2, 24 June 2005 - 06:42 AM.

  • 0





  • Member
  • PipPip
  • 51 posts
i dont know how to put it in a word doc but i know how to put it in a generic text document

Open App.path & "\hello.TXT" For Append As #1

Print #1, strstore

Close #1

Append adds the new data to the next line
  • 0

Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP