kshitij_dch
Active Member
- Joined
- Apr 1, 2012
- Messages
- 362
- Office Version
- 365
- 2016
- 2007
- Platform
- Windows
Compile error comming Argument not optional
code:
For Each c In Range
Set ID = sh2.Range("E:E").Find(c.Value, LookIn:=xlValues)
If Not ID Is Nothing Then
sh2.Range("I" & ID.Row) = sh2.Range("F" & ID.Row) - sh1.Range("I" & c.Row)
End If
Next
code:
bold line is where error is coming
code:
For Each c In Range
Set ID = sh2.Range("E:E").Find(c.Value, LookIn:=xlValues)
If Not ID Is Nothing Then
sh2.Range("I" & ID.Row) = sh2.Range("F" & ID.Row) - sh1.Range("I" & c.Row)
End If
Next
code:
bold line is where error is coming