Andrew (Digitwell) Well-Known Member Licensed User Longtime User Aug 7, 2019 #1 At the moment, all subs in a code module or class default to public visibility unless the private keyword is used. This mean that when I am creating a class, I need to remember to add private to all of the subs I do not want to be visible. In certain circumstances there are a great many more private subs than public subs. It would be great if there could be a new directive Code: Copy #DefaultPrivate: true which defaults the scope of all subs to private UNLESS the public keyword is explicitly used.
At the moment, all subs in a code module or class default to public visibility unless the private keyword is used. This mean that when I am creating a class, I need to remember to add private to all of the subs I do not want to be visible. In certain circumstances there are a great many more private subs than public subs. It would be great if there could be a new directive Code: Copy #DefaultPrivate: true which defaults the scope of all subs to private UNLESS the public keyword is explicitly used.