A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Merge Cells in Word 2003



 
 
Thread Tools Display Modes
  #1  
Old November 28th, 2009, 03:49 PM posted to microsoft.public.word.tables
ng6971
external usenet poster
 
Posts: 3
Default Merge Cells in Word 2003

Hi All,

I have a table in word 2003 with 6 columns and multiple rows. When I select
the entire table to merge the rows of this table it will combine all the
cells (Columns+Rows) into one cell.

The position of table as follow:

R1 C2 C3 C4 C5 C6
R2 --- --- --- --- ---
R3 --- --- --- --- ---
R4 --- --- --- --- ---

Results Needed:
Only columns are merge with leftmost cell of the table and rows are not
merge with them.
R1C2C3C4C5C6
R2---------------
R3---------------
R4---------------

Thanks in advance.
  #2  
Old November 28th, 2009, 05:36 PM posted to microsoft.public.word.tables
Stefan Blom[_3_]
external usenet poster
 
Posts: 4,556
Default Merge Cells in Word 2003

Select one row at a time and merge it. If you need to do this often, you may
want to try the following macro:

Sub MergeRowByRow()
On Error GoTo errhandler
Dim t As Table
Dim r As Row
For Each r In Selection.Tables(1).Rows
r.Cells.Merge
Next r
errhandler:
Exit Sub
End Sub

If you need assistance, see http://www.gmayor.com/installing_macro.htm.

--
Stefan Blom
Microsoft Word MVP



"ng6971" wrote in message
...
Hi All,

I have a table in word 2003 with 6 columns and multiple rows. When I
select
the entire table to merge the rows of this table it will combine all the
cells (Columns+Rows) into one cell.

The position of table as follow:

R1 C2 C3 C4 C5 C6
R2 --- --- --- --- ---
R3 --- --- --- --- ---
R4 --- --- --- --- ---

Results Needed:
Only columns are merge with leftmost cell of the table and rows are not
merge with them.
R1C2C3C4C5C6
R2---------------
R3---------------
R4---------------

Thanks in advance.



  #3  
Old November 28th, 2009, 10:42 PM posted to microsoft.public.word.tables
ng6971
external usenet poster
 
Posts: 3
Default Merge Cells in Word 2003

Hi Stefan,

Thanks for solution. Code execute perfectly. Have you know about the
behaviour of merging cells in MS Word 6.0 (This is bundled with MS Office 4.3
ver.). In word 6.0 we just selecting the whole table and execute merge cells
command. The results are same as the macro does it.

Is there any chances to modify the merge cell command behaviour in MS word
2003/2007 or any built-in command to get the results as desired? Thanks for
any assistance.
  #4  
Old November 29th, 2009, 01:38 PM posted to microsoft.public.word.tables
Stefan Blom[_3_]
external usenet poster
 
Posts: 4,556
Default Merge Cells in Word 2003

I doubt that there is a way to change the behavior of the Merge Cells
command.

--
Stefan Blom
Microsoft Word MVP



"ng6971" wrote in message
...
Hi Stefan,

Thanks for solution. Code execute perfectly. Have you know about the
behaviour of merging cells in MS Word 6.0 (This is bundled with MS Office
4.3
ver.). In word 6.0 we just selecting the whole table and execute merge
cells
command. The results are same as the macro does it.

Is there any chances to modify the merge cell command behaviour in MS word
2003/2007 or any built-in command to get the results as desired? Thanks
for
any assistance.



  #5  
Old November 29th, 2009, 01:47 PM posted to microsoft.public.word.tables
Stefan Blom[_3_]
external usenet poster
 
Posts: 4,556
Default Merge Cells in Word 2003

But note that you can attach the macro I posted to a toolbar button and/or a
keyboard shortcut, so that you can easily run it. This is explained in
Graham Mayor's article at http://www.gmayor.com/installing_macro.htm.

--
Stefan Blom
Microsoft Word MVP



"Stefan Blom" wrote in message
...
I doubt that there is a way to change the behavior of the Merge Cells
command.

--
Stefan Blom
Microsoft Word MVP



"ng6971" wrote in message
...
Hi Stefan,

Thanks for solution. Code execute perfectly. Have you know about the
behaviour of merging cells in MS Word 6.0 (This is bundled with MS Office
4.3
ver.). In word 6.0 we just selecting the whole table and execute merge
cells
command. The results are same as the macro does it.

Is there any chances to modify the merge cell command behaviour in MS
word
2003/2007 or any built-in command to get the results as desired? Thanks
for
any assistance.





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:12 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.