View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Panagiotis Marantos Panagiotis Marantos is offline
external usenet poster
 
Posts: 10
Default checking and copying cells

the sub below does not work. when it goes to the saved records worksheet it
does not go through the records.

Worksheets("Saved Records").Activate
For Each cell In Worksheets("Saved Records").Range("A2:A102")
If cell.Text = name Then
ActiveCell.EntireRow.Select
Selection.Copy
Worksheets("Temporary Record").Activate
Worksheets("Temporary Record").Range("B1:B223").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone,
SkipBlanks:=False, Transpose:=True
'Worksheets("Saved Records").Activate
'ActiveCell.EntireRow.Delete
Exit For
End If
Next cell