Re: CommandBarButton not getting deleted in MS Word



If the buttons are different you can hide or show the appropriate set as needed.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"pavan" <pavvu.akk@xxxxxxxxx> wrote in message news:1156256850.121718.295690@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sandesh,
Assuming that the buttons are same and only functionality differs, try
Ken's appraoch in your button click event handlers. Do the check he
mentions and you can write the functionality depending on the result.
Like
if (Window.EnvelopeVisible == true){Outlook related functionality....}
else if (Window.EnvelopeVisible == false){Word related
functionality....}

Hope this helps

.



Relevant Pages

  • Re: Opening Outlook Attachments in VBA
    ... Ken Slovak ... [MVP - Outlook] ... "JSkeggs" wrote in message ...
    (microsoft.public.outlook.program_vba)
  • VB6addin for outlook 2010
    ... Ken Slovak ... [MVP - Outlook] ... using redemption safeinspector I can insert the link at current cursor ...
    (microsoft.public.outlook.program_addins)
  • Re: Hoe to send a form ?
    ... Ken Slovak [MVP - Outlook] http://www.slovaktech.com ... > this form that doesn't fire when the recipients click this button. ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: OpenForm Action Cancelled error only when using Vista
    ... Ken Slovak ... [MVP - Outlook] ... on the docmd.openform line of code (OpenForm action was cancelled) after ...
    (microsoft.public.outlook.program_vba)
  • Re: Dont save to SaveSentMessageFolder
    ... Ken Slovak ... "Helmut Weber" wrote in message ... > By the way, I am automating outlook by lotus script, ... > Helmut Weber, MVP WordVBA ...
    (microsoft.public.outlook.program_vba)