Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Exporting Text from VB to Word


  • Please log in to reply

#1
mikemar2

mikemar2

    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?

Thanks

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

Advertisements


#2
TwiztidNinja

TwiztidNinja

    Member

  • 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