av8tordude
01-22-2012, 11:08 AM
I have this code that adds to a text file. Is it possible to place the text at the beginning instead of the end?
for example, in the file it has the following information:
Comp I.D. , CompName , UserName
Using the code below, it adds the txtName information at the end:
Comp I.D. , CompName , UserName , txtName
I would like it to place it at the beginning:
txtName , Comp I.D. , CompName , UserName
Open MyPath & MyFile For Append As #1
Print #1, vbTab; txtName;
Close #1
Can someone assist, thank you.
for example, in the file it has the following information:
Comp I.D. , CompName , UserName
Using the code below, it adds the txtName information at the end:
Comp I.D. , CompName , UserName , txtName
I would like it to place it at the beginning:
txtName , Comp I.D. , CompName , UserName
Open MyPath & MyFile For Append As #1
Print #1, vbTab; txtName;
Close #1
Can someone assist, thank you.