J
Jihemer
Hi,
I'm a newbie on this newsgroup.
What I'm trying to do is to fusion several cells on the same line inside a
big sheet that contains about 12 cells and 1500 lines.
The macro I recorded to fusion the cells on a single line is :
Sub Fusion3()
'
' Fusion3 Macro
' Macro enregistrée le 14/01/2004 par BLSH
'
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.MoveRight Unit:=wdCharacter, Count:=4, Extend:=wdExtend
ActiveWindow.ActivePane.SmallScroll ToRight:=3
Selection.MoveRight Unit:=wdCharacter, Count:=2, Extend:=wdExtend
Selection.Cells.Merge
End Sub
The macro sarts on a cell, then moves the cursor down to the following line,
selects the first cell, then the other ones, and finally fusion them in a
single cell with no loss of data.
And it works like a charm !
Now could someone help me to use the "do...loop" command or any other
command to do the same job on all the lines, because it is a long long job
to start the macro at each line !
Thank you for your answers...
Jihemer
I'm a newbie on this newsgroup.
What I'm trying to do is to fusion several cells on the same line inside a
big sheet that contains about 12 cells and 1500 lines.
The macro I recorded to fusion the cells on a single line is :
Sub Fusion3()
'
' Fusion3 Macro
' Macro enregistrée le 14/01/2004 par BLSH
'
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
Selection.MoveRight Unit:=wdCharacter, Count:=4, Extend:=wdExtend
ActiveWindow.ActivePane.SmallScroll ToRight:=3
Selection.MoveRight Unit:=wdCharacter, Count:=2, Extend:=wdExtend
Selection.Cells.Merge
End Sub
The macro sarts on a cell, then moves the cursor down to the following line,
selects the first cell, then the other ones, and finally fusion them in a
single cell with no loss of data.
And it works like a charm !
Now could someone help me to use the "do...loop" command or any other
command to do the same job on all the lines, because it is a long long job
to start the macro at each line !
Thank you for your answers...
Jihemer