![]() |
#1
|
|||
|
|||
![]()
Hi,
I need help creating a macro which will merge particular cells within a table for multiple rows but leave the rows separate. In my table I've got 8 columns and 20 rows. In each of the 20 rows I want to merge the data in columns 2, 3 & 4. I've picked up the following macro which will merge the Cells but I need it to loop through the rest of the table. Sub MergeCellsRowByRow() ' ' MergeCellsRowByRow Macro ' ' Dim myCells As Range Dim r As Row With ActiveDocument Set myCells = .Range(Start:=.Tables(1).Cell(1, 2).Range.Start, End:=.Tables(1).Cell(1, 4).Range.End) myCells.Select End With Selection.Cells.Merge End Sub Thanks in advance |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
viuf | PowerPoint | 13 | 02-19-2012 10:34 AM |
![]() |
tinfanide | Word VBA | 12 | 02-09-2012 12:05 AM |
![]() |
tonywatsonmail | Mail Merge | 1 | 01-31-2012 04:37 AM |
![]() |
deltaskye | Word | 5 | 01-27-2012 11:58 AM |
Count range cells eliminating merge cells | danbenedek | Excel | 0 | 06-15-2010 12:40 AM |