Give Word table an id?

Mandark

New Member
Joined
Mar 18, 2014
Messages
43
I have a Word document with multiple tables. In each of those tables, I have multiple labels.

Then, I have a macro, that loops through all the labels and I would like to it look at the name of the label and name of the table. From this information, it will look into excel file and locates the correct cell data to fill in the label caption.

The problem is, that I do not know how to populate the names for the tables. At this moment, if I ask for the table.id or table.title, it is blank. If I fill the id with VBA, save the file, close it and open it, the id is empty again.

Any idea how this can be done?
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Re: How to give Word table an id?

Second question:

How do I loop using a Word macro through all open Excel workbooks?

The classical

Code:
for each wb in Workbooks

or

Code:
for each wb in Application.Workbooks

is not working.
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top