#1
|
|||
|
|||
Macro for merging cells in a word table
Hi everyone,
I am a writer and deal with huge tables all day every day in Word. I'm new to macros but want a function where I can merge two side-by-side cells together. Does anyone know how I can do this? Will it work if I only want to do that for certain cells? |
#2
|
||||
|
||||
That's as simple as seleting the cells to merge, then using:
Code:
Sub Demo() Selection.Cells.Merge End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
Good point, maybe I’m aiming too low given that I’ve never used macros before. When I merge the cells, another issue is that they don’t merge nicely. There’s often an extra space between the two cells. Is there a way to remove this? And is there a way that I can also put the number in the second cell in brackets?
|
#4
|
||||
|
||||
Quote:
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Merging 2 cells | riothecat | Excel | 3 | 01-04-2017 03:00 PM |
Macro to split table cells | nachiketapte | Word VBA | 10 | 03-08-2016 04:07 AM |
Macro to loop through all cells in a table produced by a mail merge | elh52 | Word VBA | 4 | 08-31-2014 10:50 PM |
Macro to Merge Cells Row By Row in a Table | KD999 | Word VBA | 4 | 02-20-2012 08:51 PM |
Merging word files from excel macro | hklein | Excel Programming | 0 | 08-05-2011 02:27 AM |