View Single Post
 
Old 10-20-2023, 09:12 AM
JTurczynski JTurczynski is offline Windows 10 Office 2016
Novice
 
Join Date: Oct 2023
Posts: 1
JTurczynski is on a distinguished road
Default WS Word table titles changing when opening a document

Hi:

New member here. I am programmer that works primarily in Visual Studio but I also do MS office automation using VBA.

I am having problems with MS Word tables. I have created a VBA macro to search for a particular table based on the table title. The macro works great, however, I think my problem is more with MS Word in general vs my automation. So my Word document has different tables side by side on a page. The left table had the alignment set to left and the text wrapping set to none. The right hand table had the alignment set to Right and the text wrapping set to Around. Each table was given a different title in the properties window. Let say I named the LH table Table1 and the RH table Table2. After changing the title in the properties, I would save my document and verify both tables had the correct name. If, however, I would close the document and reopen it, the table name on one of the tables would change to match the other. At first I thought I missed something so I changed the names again but each time the name would change after opening the document.

As a test, I changed the format of both tables to be LH alignment and No Text Wrapping. After doing this, I no longer have the issue. This seems like a bug to me. I would like to go back to side by side tables to save space so I'm wondering if there is some type of work around? Has anyone else experienced this before?

By the way, I'm using MS Word 2016.

Thanks,
Reply With Quote