- Local time
- Today, 02:54
- Joined
- Feb 19, 2002
- Messages
- 45,438
It doesn't matter how simple or complex the code is. The issue is KNOWING the the code/macro can be reused and probably is. That way, if you have to change it for use A, you are much less likely to break use B in the process. It's kinda' like a 1-m relationship. Once you have more than one of something you have many. Well, once you have more than one procedure using a procedure, you have "many" and you need a different structure. I'm pretty sure that 99% of the experts here have on at least one occasion gotten sucked into using two instances of something which they later regretted.where the button click code is simple and used in just one other place, I see no reason to create a separate procedure just for the sake of it