Antoine,
You can do that with the following:
Range(ActiveCell.Offset(0, 2).Address & ":" & ActiveCell.Offset(0, 3).Address & "," & _
ActiveCell.Offset(0, 5).Address & "," & _
ActiveCell.Offset(0, 12).Address & ":" & ActiveCell.Offset(0, 34).Address & "," & _
ActiveCell.Offset(0, 57).Address & ":" & ActiveCell.Offset(0, 68).Address) _
.Copy
Notes:
-Use ":" to combine two cells into a solid range
-Use "," to add a new (separate) group to the range
-The way I have it formatted is optional. It makes it easier for me to see which groups are in the range quickly if each group is on its own line. You'll notice the offset(0,5) doesn't have a combiner ":" because that cell is by itself.
Hope this helps,
~tigeravatar
Bookmarks