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 / October 2005

Tip: Looking for answers? Try searching our database.

changing textfile with VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tobias - 27 Oct 2005 13:54 GMT
Hallo,

how can I delete the first line from a textfile by vba, or how can i
delete a special string from a textfile by vba.

Greetings and thanks

Tobias Wolff
Karl E. Peterson - 27 Oct 2005 18:31 GMT
> how can I delete the first line from a textfile by vba, or how can i
> delete a special string from a textfile by vba.

You can't, really.  Not with _any_ language.

The only way to delete content from a file, text or otherwise, is to:

 * read the file
 * write the desired content back

That second step is generally to a new file.  Once you have a good reproduction,
minus the unwanted bits, you can delete the original and rename the new.
Signature

Working Without a .NET?
http://classicvb.org/petition

 
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.