Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 07-24-2014, 03:08 PM
macropod's Avatar
macropod macropod is online now Creating a merged list with added numbers Windows 7 32bit Creating a merged list with added numbers 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
 

Thread Tools
Display Modes


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
Creating a merged list with added numbers Align Mail Merged Numbers to the Decimal Point HangMan Mail Merge 1 12-11-2013 02:32 PM
Creating a merged list with added numbers decimal numbers not appearing properly in merged document paulys Mail Merge 2 08-06-2012 08:15 AM
Creating a merged list with added numbers Creating TOC with letters and numbers tanababa Word 1 04-28-2011 01:35 AM
Creating a merged list with added numbers creating unique numbers in excel bignick270 Excel 1 05-17-2009 05:40 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft