Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default What's the best way of writting a text file through VBA?

So why not write to your C: drive (maybe a temp folder) and just move the file
to the network drive when you're done?

Look at Name Statement in VBA's help:

salut wrote:

I have to create several text files through VBA every month, and the text
files have to be created line by line. What I do right now is to write to the
text file everytime I created a new line for this text file. And it became
extremely slow when everything is located on a network drive. I am guessing
the major reason is because writing to the network drive frequently makes the
process slow.

So I am thinking about if it is possible to put the data for the text file
in a buffer and then save it to the network drive only once. The text file is
not huge, its size is just about 3M. Saving a 3M file on the network drive
should just take a few seconds, at most 1 minute.

Could anybody help me on this problem? Thanks a lot!


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel writting Ken Excel Discussion (Misc queries) 2 June 12th 07 10:34 PM
Help with writting macro nc Excel Programming 1 November 29th 05 10:01 AM
Help with writting macro nc Excel Discussion (Misc queries) 0 November 28th 05 02:45 PM
Help writting a macro Gerald[_2_] Excel Programming 3 August 11th 05 04:56 AM
Writting Function using VBA nc Excel Discussion (Misc queries) 3 April 1st 05 07:13 AM


All times are GMT +1. The time now is 10:53 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"