Hi Friends,
I have a query regarding replace entire value to “x” if header is equal to “Smith, John”.
Hi Friends,
I have a query regarding replace entire value to “x” if header is equal to “Smith, John”.
Use the below code in Invoke Code activity
DT.AsEnumerable().ToList().ForEach(Sub(row)
If DT.Columns.Contains("Smith, John") Then
row("Smith, John") = "x"
End If
End Sub)
Pass DT as In/Out in invoke code activity arguments
Regards,
showing error code in invoke window–>It saying DT cannot be used in lambada expression.
Can you make a xaml for this?

You can use invoke VBA activity to achieve this
Find attached Xaml for your testing.
DataFormatting_X.zip (37.0 KB)
Hope this helps ![]()
Thanks bro, I have already written VBA code.
I want separate entries for player.
Let me explain it.
Player1 visited John Smith & Rose mary in between 1-7 jan
So I want 2 entries.
In 1st entry John Smith have existing data and in front of Rose just x,x
In 2nd entry Rose mary have existing data and in front of John x,x
Note:- If player visited only 1 person in date range 1-7 then single entry