Ivo Raemy
asked on
Word VBA; set width of the cells after a split
Hello
I want to format a word table.
1. I want to catch the with of the current cell. (how can I doi this?)
2. I merge 2 cells,
3. then i to
until I am on a new row
4 now, i do a split
How do I set the width of the new cells? The width sould be the same as before the merge.
freundliche Grüsse
Ivo Raemy
I want to format a word table.
1. I want to catch the with of the current cell. (how can I doi this?)
2. I merge 2 cells,
Selection.MoveRight Unit:=wdCharacter, Count:=2, Extend:=wdExtend
Selection.Cells.Merge
3. then i to
Selection.MoveRight Unit:=wdCell
until I am on a new row
4 now, i do a split
Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.Cells.Split NumRows:=1, NumColumns:=2, MergeBeforeSplit:=True
How do I set the width of the new cells? The width sould be the same as before the merge.
freundliche Grüsse
Ivo Raemy
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I thank you for this solution. It suits my problem.
freundliche Grüsse
Ivo Raemy