K
Ken
Hi,
I have a word template that was created by the third
party. I would like to insert data to the tables in the
template from a text file. There are 3 tables on the
template but when I check from my VBA code. I use
ActiveDocument.Tables().Count. The number shows up "2".
My questions are:
1. What happened to 3 tables in my template. Why I only
have 2 index numbers for 3 tables?
2. My VBA code can insert data to the table in the
template by using Tables(1) or Tables(2). But, it always
goes to the same table in the template. I am wondering
does those indexes are linked to a specific table. If
there is any way I can write to let my data insert to the
table I want.
Thank you very much! I appreciated it!
I have a word template that was created by the third
party. I would like to insert data to the tables in the
template from a text file. There are 3 tables on the
template but when I check from my VBA code. I use
ActiveDocument.Tables().Count. The number shows up "2".
My questions are:
1. What happened to 3 tables in my template. Why I only
have 2 index numbers for 3 tables?
2. My VBA code can insert data to the table in the
template by using Tables(1) or Tables(2). But, it always
goes to the same table in the template. I am wondering
does those indexes are linked to a specific table. If
there is any way I can write to let my data insert to the
table I want.
Thank you very much! I appreciated it!