Word 2000 VBA - reading and writing text file 
Author Message
 Word 2000 VBA - reading and writing text file

Hi folks,

Can someone suggest what is the best way to read a parameter from a text
file to use within some VBA code in a Word 2000 document. The parameter
would then need to be updated and written back to the same file.

Thanks in advance.

Ian Kirby



Sun, 29 Dec 2002 03:00:00 GMT  
 Word 2000 VBA - reading and writing text file
Hi Ian,

I use the FileSystemObject for doing this. It is very fast; you just need to
add the Microsoft Scripting Runtime reference. to be able to use the object.

Hope this helps and have a great day!
--
~~~~~~~~~~~~~~~~~~~~~~
Stephen Lang
401 S. Carson Street
Carson City, NV 89703
775.684.6830
GMT-8
slangatlcb state nv us
~~~~~~~~~~~~~~~~~~~~~~
To respond via e-mail:


Quote:
> Hi folks,

> Can someone suggest what is the best way to read a parameter from a text
> file to use within some VBA code in a Word 2000 document. The parameter
> would then need to be updated and written back to the same file.

> Thanks in advance.

> Ian Kirby



Sun, 29 Dec 2002 03:00:00 GMT  
 Word 2000 VBA - reading and writing text file

Hi Ian,

Quote:
> Can someone suggest what is the best way to read a parameter from a text
> file to use within some VBA code in a Word 2000 document. The parameter
> would then need to be updated and written back to the same file.

Have a look at the topic "Writing data to files" in the Word VBA help. To
find it, go to the index tab and type "writing" (without the quotes).

--
Hope this helps.
Regards
ibby

Please post replies or follow-ups to the **newsgroup** so that participants
may benefit or contribute.



Mon, 30 Dec 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Text from vba text box (>2000 characters) to a Word bookmard

2. Reading from a text file and writing toa text file from Vis Bas 6.0

3. Inserting Text in Front of Footnotes in VBA - Word 2000

4. Differences on word 2002 and word 2000 vba

5. vba problem word 97 and not word 2000

6. Differences between VBA for Word 2000 and Word 97

7. Does Word VBA 2002 developed code run on Word 2000

8. Word 97 and Word 2000 VBA - Functionality Lost?

9. Writing text and placing a picture into Word using VBA

10. Write text and insert pic to Word doc (from Access VBA)

11. Formatted Word 2000 text in SQL 2000

12. Formatted Word 2000 text in SQL 2000

 

 
Powered by phpBB® Forum Software