View Single Post
 
Old 10-01-2013, 04:26 AM
Rafiko6665 Rafiko6665 is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Sep 2013
Location: Edinburgh
Posts: 1
Rafiko6665 is on a distinguished road
Default

this is for bone block u can generate it for the whole thing easy ozy
Sub y()
Dim i As Double
Dim count As Double
Dim rk As String
count = 0
For i = 1 To 7
If Range("a1").Offset(i - 1, 0) = Range("a1").Offset(i, 0) Then
If Range("c1").Offset(i - 1, 0).Value = "Done" Then count = i
rk = Range("b1").Offset(count, 0).Value
End If
Next i
MsgBox rk
End Sub
Reply With Quote