Random Access .txt files

ColinKJ

Well-known Member
Joined
Jan 27, 2009
Messages
983
Hi,

Can anyone direct me to some information on how to use Random Access text file with my VBA code.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
The text file in question would be continually added to, so when I want to access some data from it I don't want to have to load the complete file.<o:p></o:p>
<o:p></o:p>
Likewise, when I want to change some data in the file, again I don't want to have to load and save the whole file.<o:p></o:p>
<o:p></o:p>
Any help would be gratefully appreciated
<o:p></o:p>
Regards

ColinKJ
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

nbrcrunch

Well-known Member
Joined
Jan 1, 2003
Messages
2,062
I have never heard of a random access text file, but that doesn't necessarily mean anything. I think a better solution for you would be to look at (given your criteria of not wanting to read/re-write the whole file) a database solution. You can download MySQL for free, read it like any other database file, write to it, run reports from it, etc. But that really si beyond the scope of this Excel forum. I can't remember what site I got my copy from. It may have been sourceforge
 

Forum statistics

Threads
1,136,303
Messages
5,674,966
Members
419,537
Latest member
ucatchy

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top