HenrikH
2009-09-20 12:01:45 UTC
I have some VBA code which runs when the user presses a buttom on the
toolbar.
Diffent code have to be run when the user presses a buttom on the
toolbar of the new mail window (the window that shows a mail beeing
written) or if he presses the buttom on the toolbar of the received
mail window (the windows showing a opened mail).
I have placed the butooms (2 different buttoms each assigned each own
macro) on the 2 diffent windows. However both buttoms show up on both
windows.
How do I prevent the wrong buttom from showing at the wrong window?
The buttoms are not put on the toolbars using code but using the
standard way of editing the standard toolbar.
Hope you understand my question ;-)
toolbar.
Diffent code have to be run when the user presses a buttom on the
toolbar of the new mail window (the window that shows a mail beeing
written) or if he presses the buttom on the toolbar of the received
mail window (the windows showing a opened mail).
I have placed the butooms (2 different buttoms each assigned each own
macro) on the 2 diffent windows. However both buttoms show up on both
windows.
How do I prevent the wrong buttom from showing at the wrong window?
The buttoms are not put on the toolbars using code but using the
standard way of editing the standard toolbar.
Hope you understand my question ;-)