Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

Copy array into text file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fabien - 15 Aug 2006 00:06 GMT
Hi,

I would like to find some array in a word document and to copy them into
a txt file (with tab instead of cell of course).

My input point is a text file with name of array to copy.
Array are referenced into list of table.

How can I do?

Thanks beforehand,

BR
Fabien
Jezebel - 15 Aug 2006 00:49 GMT
Assuming your array contains strings --

Dim pFileNum as long

pFileNum = freefile
Open "C:\MyFile.txt" for output as pFileNum
Print #pFileNum, Join(MyArray, vbtab)
close #pFileNum

If your array is not text, you'll need to iterate it.

> Hi,
>
[quoted text clipped - 10 lines]
> BR
> Fabien
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.