excellence
Board Regular
- Joined
- Oct 5, 2005
- Messages
- 155
- Office Version
- 365
- Platform
- MacOS
The enclosed macro puts the contents of N15 to the first empty cell in column D. The contents of column D are conditionally formatted for duplicates. I would like that whatever is added to the last cell in column D to be pasted WITH its formatting to cell E22 at the end of this macro. This would help me see those contents without having to scroll down lots of rows to see if it is a duplicate. I can't figure what to add to this macro to make it happen.
Many thanks
Many thanks
VBA Code:
Sub macrooo()
Range("N15").Select
Selection.Copy
With ActiveSheet
Set currentcell = .Cells(.Rows.Count, "d").End(xlUp)
If IsEmpty(currentcell) Then
'do nothing
Else
currentcell.Offset(1, 0).Select
Selection.PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
End If
End With
End Sub