Link to home
Create AccountLog in
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
ASKER CERTIFIED SOLUTION
Avatar of DrTribos
DrTribos
Flag of Australia image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Selection always gives you the position of the cursor, I hope that is what you wanted 😊
Avatar of Ivo Raemy
Ivo Raemy

ASKER

Great, it works
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