Thread
:
Delete a line in text file
View Single Post
#
2
Posted to microsoft.public.excel.programming
Tom Ogilvy
external usenet poster
Posts: 27,285
Delete a line in text file
workbooks.open "C:\My Files\Myfile.txt"
Rows(4).EntireRow.Delete
workbooks.Close SaveChanges:=True
--
Regards,
Tom Ogilvy
"Francis Ang" <Francis
wrote in message
...
I have created a text file using the Open Statement. How do I delete a
specific line say line 4 of the text file using VBA. Any help is very much
appreciated. TIA
Reply With Quote
Tom Ogilvy
View Public Profile
Find all posts by Tom Ogilvy