Hi,
I always thought .value=.value was same as .copy .PasteSpecial xlPasteValues but I found it's not same when a formula is used which returns "".
Is there a better way to solve this problem?
Your help would be greatly appreciated.
Kind Regards
Biz
I always thought .value=.value was same as .copy .PasteSpecial xlPasteValues but I found it's not same when a formula is used which returns "".
Code:
'Assessment# Dup
With Range("AA2:AA" & LastRow)
'"=IF(COUNTIF(R2C20:R30591C20,RC[-1])>1,1,"""")"
.Formula = "=IF(COUNTIF($Z$2:$Z$" & LastRow & ",Z2)>1,1,"""")"
' .Value = .Value
.Copy
.PasteSpecial xlPasteValues
' .PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
' :=False, Transpose:=False
Application.CutCopyMode = False
End With
Is there a better way to solve this problem?
Your help would be greatly appreciated.
Kind Regards
Biz