HI! I'm a beginner (at best) with VBA loops and would need to adjust data in Excel table rows, depending on a single column cell value. I want to loop through all rows for this table and adjust data depending on value in 3rd column ("Check"). If column "Check" value is 1, insert value "Disable" to 2nd column ("Status"). Would be nice to make the code a little bit more advanced, so that under the same condition, "Check" = 1 would also clear contents from 4th column ("Quantity") but if one thing works, it's already great.
I think I should use For Each listrow function here and run IF-clause inside each loop, but as simple as it looks, I'm not sure how to address correct listcolumn within a single listrow (e.g. address correct cell). Thanks!
.
I think I should use For Each listrow function here and run IF-clause inside each loop, but as simple as it looks, I'm not sure how to address correct listcolumn within a single listrow (e.g. address correct cell). Thanks!
VBA Code:
Sub Update_listrow()
Dim lstobj As ListObject
Dim lstrw As ListRow
Set lstobj = ActiveSheet.ListObjects("Table1")
For Each lstrw In lstobj.ListRows
'If...
Next lstrw
End Sub
.