i have this macro that don't run on new excel.
when i activate the macro the clipboard is cleared. where is the problem?. thanks all
Sub expirydate()
Range("AB12").Select
Selection.Copy
Range("AB6:AB11").Select
Range("AB11").Activate
Selection.PasteSpecial Paste:=xlFormulas, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
Range("AB6:AB11").Select
Range("AB11").Activate
Selection.Copy
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Application.CutCopyMode = False
Range("AA6:AB11").Select
Range("AB11").Activate
Selection.Sort Key1:=Range("AB12"), Order1:=xlAscending, Header:=xlGuess _
, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Range("Z10").Select
End sub
Bookmarks