![]() |
|
#6
|
||||
|
||||
|
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] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Added page numbers and now printing unwanted blank pages. | galvax | Word | 2 | 12-18-2013 08:41 PM |
Align Mail Merged Numbers to the Decimal Point
|
HangMan | Mail Merge | 1 | 12-11-2013 02:32 PM |
decimal numbers not appearing properly in merged document
|
paulys | Mail Merge | 2 | 08-06-2012 08:15 AM |
Creating TOC with letters and numbers
|
tanababa | Word | 1 | 04-28-2011 01:35 AM |
creating unique numbers in excel
|
bignick270 | Excel | 1 | 05-17-2009 05:40 AM |