Thread: [Solved] Table formatting issue:
View Single Post
 
Old 05-04-2025, 02:40 AM
macropod's Avatar
macropod macropod is online now Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,379
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Well, you did say the document has multiple tables and you only supplied one example and you gave no indication that other tables might be formatted differently or that you didn't want the macro to process all of them. So that's all I had to code for.

If you want the code to only run on the selected table(s), simply change 'ActiveDocument' to 'Selection'.

Given that you seem to have a variety of tables with different structures, you'll probably need a differernt macro for each structure.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote