Application.CutCopyMode = False
Application.ScreenUpdating = False
Application.FindFormat.Clear
Application.FindFormat.Locked = False
Set fin = Cells.Find(what:="", SearchFormat:=True)
If Not fin Is Nothing Then
firstaddress = fin.Address
Do
fin.Copy
fin.PasteSpecial Paste:=xlPasteValues
Set fin = Cells.Find(what:="", after:=fin, SearchFormat:=True)
Loop While Not fin Is Nothing And fin.Address <> firstaddress
End If
Application.FindFormat.Clear
Application.ScreenUpdating = True
Application.CutCopyMode = True
|