Find first non-empty cell ranght from column A
Hi Sige,
It is not only the Font formatting it inherits... but it is more than
fine!
Try:
'=============
Public Sub Teste3()
Dim rng As Range
Dim rng2 As Range
Dim rCell As Range
On Error Resume Next
Set rng = Intersect(ActiveSheet.UsedRange, Columns("A"))
Set rng2 = rng.SpecialCells(xlBlanks)
On Error GoTo 0
If Not rng2 Is Nothing Then
For Each rCell In rng2.Cells
With rCell
.Value = .End(xlToRight).Value
.Font.Name = .End(xlToRight).Font.Name
.Font.FontStyle = .End(xlToRight).Font.FontStyle
.Font.Size = .End(xlToRight).Font.Size
.Font.Underline = .End(xlToRight).Font.Underline
.Font.ColorIndex = .End(xlToRight).Font.ColorIndex
End With
Next rCell
End If
End Sub
'<<=============
---
Regards,
Norman
|