View Single Post
 
Old 07-24-2014, 03:08 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,514
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long, j As Long, k As Long, lRow As Long
With ThisWorkbook.Worksheets("Sheet1").UsedRange
  lRow = .Cells.SpecialCells(xlCellTypeLastCell).Row
  For i = 1 To lRow - 1
    For j = i + 1 To lRow
      k = k + 1
      .Range("D" & k).Value = .Range("A" & i).Value & " & " & .Range("A" & j).Value
      .Range("E" & k).Value = .Range("B" & i).Value + .Range("B" & j).Value
    Next
  Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote