I apologize in advance for my question, I didn't had much to do with MsWord macros till now.
Until now I executed the script below to add one-by-one some well-formatted tables to a word document via a VBA Word macro:
Sub InsertTableToWord()
Dim TCID As String, TCTitle As String, TCObjective As String
TCID = InputBox("Provide TCID: ")
TCTitle = InputBox("Provide TCTitle: ")
TCObjective = InputBox("Provide TCObjective: ")
' some code to format the entered data
Selection.TypeText Text:=TCID
Selection.TypeText Text:=TCTitle
Selection.TypeText Text:=TCObjective
End Sub
I had to execute the above presented macro 10 to 40 times for different TC* values.
What I would like to do now:
- store the TC* values in a CSV (done, 1st column TCID, 2nd - TCTitle, 3rd - TCObjective)
- modify my code to load the values stored in the CSV file and repeat the action until all the data from the CSV file is used.
Could you guys help me with this?