View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ken Johnson Ken Johnson is offline
external usenet poster
 
Posts: 1,073
Default If Cell Contains Put in another Cell

Hi Dennis,
does this do what you want?...

Public Sub Dennis()
Application.ScreenUpdating = False
Dim ilastrow As Long
ilastrow = Range("A" & Range("A:A").Rows.Count).End(xlUp).Row
Dim I As Long
Dim vaData As Variant
For I = 1 To ilastrow
With Range("A" & I)
If Not .Find("c:\") Is Nothing Then
vaData = .Value
End If
End With
Range("S" & I).Value = vaData
Next I
End Sub


Ken Johnson