How about line labels?
Nah, no way to connect line numbers to labels. Never liked line numbers.
Could use a trip wire variable, every time the code execution passes a certain point the trip wire variable is increased by 1. Probably not good inside loops and for main code only. Report the trip wire value and you can track down where the error occured
But why isn't exact line number in source code not helpful?
Read the Wiki, _errorline reports the exact line number in the source code that you can see from the IDE.
Also, On Error can be set for different conditions and turned off. So change that according to the message you want to make for section of code that it's covering.
Nah, no way to connect line numbers to labels. Never liked line numbers.
Could use a trip wire variable, every time the code execution passes a certain point the trip wire variable is increased by 1. Probably not good inside loops and for main code only. Report the trip wire value and you can track down where the error occured
But why isn't exact line number in source code not helpful?
Read the Wiki, _errorline reports the exact line number in the source code that you can see from the IDE.
Also, On Error can be set for different conditions and turned off. So change that according to the message you want to make for section of code that it's covering.
b = b + ...