I have a word document that has a nested table like this:
I need to run a macro that will perform the same function whether the cursor is in the nested table OR in the parent table. The macro inserts autotext into a new row (created below the current "parent" row). I can get the thing to insert the autotext at the end of the "parent" table, but that actually defeats the purpose of the macro.
For example, in the table above, let's say I want the macro to insert the autotext in between rows 2 and 3. I should be able to have the cursor anywhere in row 2(in the nested table or the "parent") and the macro will put the new row below the current "parent" (actually, I split the table below and insert autotext)
How do I use VBA to check if I'm located within the nested table then...if I am...get the cursor out of the nested table and to the end of the "parent" row so that I can do the autotext thing? And, subsequently, perform the autotext entry "regularly" if I'm not in the nested table?
(Am I making sense?)
Thanks,
Jon

I need to run a macro that will perform the same function whether the cursor is in the nested table OR in the parent table. The macro inserts autotext into a new row (created below the current "parent" row). I can get the thing to insert the autotext at the end of the "parent" table, but that actually defeats the purpose of the macro.
For example, in the table above, let's say I want the macro to insert the autotext in between rows 2 and 3. I should be able to have the cursor anywhere in row 2(in the nested table or the "parent") and the macro will put the new row below the current "parent" (actually, I split the table below and insert autotext)
How do I use VBA to check if I'm located within the nested table then...if I am...get the cursor out of the nested table and to the end of the "parent" row so that I can do the autotext thing? And, subsequently, perform the autotext entry "regularly" if I'm not in the nested table?
(Am I making sense?)
Thanks,
Jon