I'm a little confused about how to work with multiple tables in a word macro.
I dynamically added one table to a word document, and referred to it as Selection.Tables(1), and I was able to populate it dynamically. But then I built a second table and referred to it as Selection.Tables(2), but I got an error message that this member of the collection did not exist.
I then did a Record Macro to see how it was handled. To my surprise, the Macro referenced them all as Selection.Tables(1)! So I went back to my code and did the same thing, but all the data I was populating with all went into the same table and made a big mess. I don't know how to get the second table built and populate it with data.
Help?
Thanks.




Reply With Quote