Thanks Dave Yes I am pasting the new data into old cells. The macro I
run looks like this( I substituted the name of the real name with an X)
I'm not sure where your code goes. Again thanks
Sub ACD09()
ActiveCell.FormulaR1C1 = _
"=IF(ISERROR(VLOOKUP(RC3,'[X'!R1C1:R38C5,2,FALSE)),0,VLOOKUP(RC3,'[X'!R1C1:R38C5,2,FALSE))"
Range("D3").Select
Selection.Copy
Range("D4

29").Select
ActiveSheet.Paste
Range("L3").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=IF(ISERROR(VLOOKUP(RC3,'[X'!R1C1:R37C5,3,FALSE)),0,VLOOKUP(RC3,'[X'!R1C1:R37C5,3,FALSE))"
Range("L3").Select
Selection.Copy
Range("L4:L29").Select
ActiveSheet.Paste
Range("L3").Select
Application.CutCopyMode = False
Selection.Copy
Range("N3").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=IF(ISERROR(VLOOKUP(RC3,'[X'!R1C1:R37C5,4,FALSE)),0,VLOOKUP(RC3,'[X'!R1C1:R37C5,4,FALSE))"
Range("N3").Select
Selection.Copy
Range("N4:N29").Select
ActiveSheet.Paste
Range("N3").Select
Application.CutCopyMode = False
Selection.Copy
Range("Q3").Select
ActiveSheet.Paste
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = _
"=IF(ISERROR(VLOOKUP(RC3,'[X'!R1C1:R37C5,5,FALSE)),0,VLOOKUP(RC3,'[X'!R1C1:R37C5,5,FALSE))"
Range("Q3").Select
Selection.Copy
Range("Q4:Q29").Select
ActiveSheet.Paste
Range("Q3").Select
End Sub
Dave Peterson said:
Maybe you're pasting the new data into the old cells.
Instead of using
somerange.copy _
destination:=someotherrange
You could use pastespecial values???
I'd try it manually to see if that works. Then change the code.