H
hals_left
I have a tempate with some vba code that fills in teh document from a
database.
The code works by writing to ActiveDocument
I want to modify this so that it can read in a text file of values and
create one document for each row.
Within the code How do I add a new document and then make it the active
document sio it is written to?. I have tried using this but it just
writes to the same document each time.
Thanks
Application.Documents.Add (ActiveDocument.Path & "/" &
ActiveDocument.Name)
Application.Documents(Application.Documents.Count).Activate
database.
The code works by writing to ActiveDocument
I want to modify this so that it can read in a text file of values and
create one document for each row.
Within the code How do I add a new document and then make it the active
document sio it is written to?. I have tried using this but it just
writes to the same document each time.
Thanks
Application.Documents.Add (ActiveDocument.Path & "/" &
ActiveDocument.Name)
Application.Documents(Application.Documents.Count).Activate