+ Reply to Thread
Results 1 to 2 of 2

Macro to prompt user to check Subject when send button is clicked

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    singapore
    MS-Off Ver
    Excel 2003
    Posts
    2

    Macro to prompt user to check Subject when send button is clicked

    Hi

    I am trying to come up with a code in excel vba that will prompt use to double check the subject when "Send"
    is clicked.

    The code i have below is for Outlook vba and will only prompt when the Subject is empty

    Is it possible to edit the below so that i can use it in excel and have it to prompt when "Send" is clicked. Thank you

    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean) If Item.Subject = "" Then 'Edit the message and the popup caption on the next line as desired.' msgbox "You are not allowed to send an item with a blank subject. Please enter a subject and send again.", vbCritical + vbOKOnly, "Prevent Blank Subjects" Cancel = True End IfEnd Sub

  2. #2
    Forum Contributor
    Join Date
    04-03-2012
    Location
    Washington State
    MS-Off Ver
    Excel 365
    Posts
    340

    Re: Macro to prompt user to check Subject when send button is clicked

    Hi, be sure to use code tags when posting code. Does the subject need to contain any special words?

    You could try something like this at the beginning of your code....

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1