I found the following VBA code below which append text to an existing text file using notepad at the end of the file.
I have been trying to add text to a specific line but I have not been successful. The solution that I want would be to open an existing text file using notepad, add a blank line at the top of the text file. So original line #1 would move to line #2 and line #1 would be blank. See examples below. Thank you in advance for your time.Please Login or Register to view this content.
Original file:
Line 1 | This is line #1
Line 2 | This is line #2
New file after macro:
Line 1 |
Line 2 | This is line #1
Line 3 | This is line #2
Bookmarks