hi i have sheet with 3 column, i want to find first "0" in column B and copy C1 value to A column that side of "0"
i need vba code for this sample
tanks
Attachment 20883
Printable View
hi i have sheet with 3 column, i want to find first "0" in column B and copy C1 value to A column that side of "0"
i need vba code for this sample
tanks
Attachment 20883
For the future, please post workbook samples (Go Advanced /Manage Attachments) rather than screenshotsCode:Sub Test()
Set c = Columns(2).Find(0, after:=Cells(Rows.Count, 2), lookat:=xlWhole, searchdirection:=xlNext)
If Not c Is Nothing Then
c.Offset(, -1) = Range("C1")
Else
MsgBox "0 not found"
End If
End Sub
cross post:
https://stackoverflow.com/q/47175701