Hi, so I currently have a loop that fails to stop if the target condition set is impossible to meet.
I have a sheet "system" that is fed by information from "subsystem 1", "subsystem 2", "subsystem 3" and so on (each subsystem sheet is based off the same template). The user can add as many subsystems sheets as they need. Within the subsystem sheets there are components (again can have as many rows required by the user).
I would like to implement the condition that if the sum(I7 to end of row), so a variable range from I7 down to I"", equals zero on any subsystem sheet then the loop ends.
I wonder if anyone would be able to offer any potential ways to implement this? I am new to VBA and I am just trying to get my head around what is going on.
Any help with this would be greatly appreciated.
Many thanks,
J
I have a sheet "system" that is fed by information from "subsystem 1", "subsystem 2", "subsystem 3" and so on (each subsystem sheet is based off the same template). The user can add as many subsystems sheets as they need. Within the subsystem sheets there are components (again can have as many rows required by the user).
I would like to implement the condition that if the sum(I7 to end of row), so a variable range from I7 down to I"", equals zero on any subsystem sheet then the loop ends.
I wonder if anyone would be able to offer any potential ways to implement this? I am new to VBA and I am just trying to get my head around what is going on.
Any help with this would be greatly appreciated.
Many thanks,
J