Avatar of Ivo Raemy
Ivo Raemy
 asked on

in Word VBA, find the current position in a table, then do a merge of the whole line and write Text in it

Dear Sir, Dear Madam

In Word VBA, I would like

1. to find the current position in a table
2. then do a merge of the whole table line
3. write Text in it

Is there a way to do this?

Sincerely

Ivo Raemy
Microsoft WordVBA

Avatar of undefined
Last Comment
DrTribos

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
DrTribos

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
DrTribos

Selection always gives you the position of the cursor, I hope that is what you wanted 😊
Ivo Raemy

ASKER
Great, it works
DrTribos

No worries, you can also use (again, from memory) selection.range.information to find out if you are in a table and avoid any error if you are not in a table
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23