Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 01-05-2012, 09:23 PM
macropod's Avatar
macropod macropod is offline IF Statement and Macros Windows 7 64bit IF Statement and Macros Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Hi Kannon,

Try the following macro:
Code:
Sub Reformat()
Application.ScreenUpdating = False
Dim i As Long, j As Long
With ActiveSheet
  .Cells.UnMerge
  For i = 1 To .Cells.SpecialCells(xlCellTypeLastCell).Row
  If .Cells(i, 1).Value <> "" Then
    j = i
  Else
    If Trim(.Cells(j, 3).Value) <> "" Then
      .Cells(j, 3).Value = .Cells(j, 3).Value & Chr(10) & .Cells(i, 3).Value
      .Cells(i, 3).Value = ""
    End If
  End If
  Next
  For i = .Cells.SpecialCells(xlCellTypeLastCell).Row To 1 Step -1
    If .Cells(i, 1).Value = "" Then .Cells(i, 1).EntireRow.Delete
  Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
IF Statement and Macros What IF statement required dr4ke Excel 8 09-01-2011 07:41 AM
IF Statement and Macros Help with IF Statement limpbizkit Excel 4 02-24-2011 09:16 PM
IF Statement and Macros if statement piper7971 PowerPoint 1 08-19-2010 07:10 AM
IF Statement and Macros Help with IF statement! CPelkey Word 1 04-12-2010 09:06 AM
Have you seen this error statement? nebb Word 4 12-01-2009 10:05 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:48 PM.


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