For each row : Object reference not set to an instance of an object

Hello,

I’m looping through directories,
opening xlsx file in each directory, do the sum of a column save it in a datatable
but got an error

For each row : Object reference not set to an instance of an object.

Hi,

your read range output is ‘datatableBUS’ datatable, but you are using a different table in the loop.

1 Like