Making sure public VBA methods don't show up in the list of Excel macros

后端 未结 5 582
渐次进展
渐次进展 2020-12-13 19:22

In Excel VBA (2003), I\'ve noticed that any Public or Friend Sub method in either a module or ThisWorkbook that

5条回答
  •  粉色の甜心
    2020-12-13 20:06

    My methods have already been listed however, ChrisB made the following statement:

    Perhaps we should all have Option Private Module at the tops of our code modules as a rule – except where the module contains procedures called by buttons

    Even Private routines can be called from a button if the Macro is assigned to the button before making it private.

提交回复
热议问题