I
Ivan
Hi,
I have the codes for merging few Excel cells into one in access.
With xlsActiveSheet.Range("E6:G6")
.Select
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = True
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = True
End With
It works fine, however, I need to make the loop instead of hard code for the
range E6:G6
because I may have more than one set cells need to be merged.
Which method which I use to solve this problem?
Thanks
I have the codes for merging few Excel cells into one in access.
With xlsActiveSheet.Range("E6:G6")
.Select
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
.WrapText = True
.Orientation = 0
.AddIndent = False
.ShrinkToFit = False
.MergeCells = True
End With
It works fine, however, I need to make the loop instead of hard code for the
range E6:G6
because I may have more than one set cells need to be merged.
Which method which I use to solve this problem?
Thanks