Peter said:
Hi JB
If you mean a Sub declared with the keyword Private as in:
Private Sub TestMyScope()
End Sub
Then the answers no. For a macro to appear in the list of available macros it must meet
the following constraints:
1. The macro must be in a standard Module, not a Class Module or Form.
2. The Module cannot use the "Option Private Module" statement.
3. The macro must be declared as a Sub and not a Function.
4. The Sub is not allowed any parameters.
5. The sub must be declared Public or no scope keyword used at all in which case Public is
assumed.
HTH + Cheers - Peter
HI Peter,
Where did you find this info? Do you have a link you can send me?
Reason I ask is that I made another copy of the addin, changed the sub
to public, added the macro to the toolbar, deleted the copied addin with
the public version of the sub, then run the macro from the toolbar
sucessfully.
Should it work this way? The one I'm using is definatley a Private Sub.
Cheers
J