macro question
Cacoe: here is one that should work:
'--------------------------------------------------------------------
' *** INSTRUCTIONS ***
'
' STEP 1
' Copy this into any Module in the workbook you want the Macro
' to be available in.
' STEP 2
' Select the entire range of cells you want to process:
' From your question, I would assume that area to be something
' like (S1 To S?20).
'
' STEP 4
' Run the macro 'CopyAbove' from the TOOLS...MACRO...MACROS Dialog
'
' That's it!!!
'--------------------------------------------------------------------
Public Sub CopyAbove()
Dim curRng As Range
Dim Evaluate As Range
Set Evaluate = Application.Selection
For Each curRng In Evaluate
If curRng.Row 1 Then
If curRng = "" And curRng.Offset(-1, 0) < "" Then
curRng = curRng.Offset(-1, 0)
End If
End If
Next curRng
End Sub
|