I think I found a different approach.
If this is used inside the workbook it should keep the formatting.![]()
Private Sub Worksheet_Change(ByVal Target As Range) Dim myValue With Application .EnableEvents = False myValue = Target.Value .Undo Target = myValue .EnableEvents = True .CutCopyMode = False End With End Sub
Bookmarks