View Single Post
 
Old 05-29-2016, 04:34 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The label has no specific use in this code sequence. It's a programming style that I developed from sharing macro development with my friend and colleague Greg Maxey. I use it in all my macros, but, as you suggest, it can be used an aid to error trapping or code ending.
If error trapping I might add a label err_Handler: after Exit sub to process the error then return to lbl_Exit to clean up and end.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote