Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Outlook 2010 Custom Form

Posted on 2014-04-09
1
Medium Priority
?
911 Views
Last Modified: 2014-05-05
Hi,

I have created a Outlook 2010 custom form that has a "Send button" on the main form.

Is there anyway I can "Hide" the send button on the toolbar / Ribbon while in this custom form (only) as some users are hitting this button which byepasses all the VBA Code.

Thank you in advance
0
Comment
Question by:Mongo Peck
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 76

Accepted Solution

by:
David Lee earned 2000 total points
ID: 39991151
There is no way I know of to hide the "Send" button on the ribbon when your custom form is open.  That's probably not really necessary though as there are other ways to handle this.  

1.  Move the code that runs when the user clicks your Send button to the Item_Send function in your form.  This function is triggered each time the form is sent.  If yout ake this approach, then the users can use the regular Send button while retaining all the functionality you had with your own Send button.

Function Item_Send()
    'Your code goes here
End Function

Open in new window


2.  Add an ItemSend event handler macro to each user's computer.  Move the code from your form to this procedure.  While this approach will solve the problem, it isn't especially practical particularly if you have more than a few people who will be using your form.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Outlook for dependable use in a very small business   This article is about using the Outlook application (part of Microsoft Office) in a very small business, or for homeowners where dependability and reliability are critical requirements. This …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question