Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8233291
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:04:45+00:00 2026-06-07T18:04:45+00:00

I want when you hit ‘send’ you are presented with a form. This I

  • 0

I want when you hit ‘send’ you are presented with a form. This I am developing in Outlook 2010.

Is there a way to populate a combo-box with a list of Macros?

Public Sub Confidential()
    Application.ActiveInspector.CurrentItem.Sensitivity = olConfidential
    Application.ActiveInspector.CurrentItem.Save
    Set MsgSub = Outlook.Application.ActiveInspector.CurrentItem
    Set objMail = Outlook.Application.ActiveInspector.CurrentItem
    Subject = MsgSub.Subject
    MsgSub.Subject = Subject + " - [CONFIDENTIAL]"
    Email = objMail.HTMLBody
    info = " <html> <body> <FONT color=#666666> <font-size: 11px> <p></p> AUTO TEXT: This message has been marked as 'CONFIDENTIAL' please treat it as such </body> </font> </html>"
    objMail.HTMLBody = Email + info
End Sub

Private Sub Sens_DropButtonClick()
    Sens.AddItem "Confidential()"
    Sens.AddItem "Normal()"
End Sub

Public Sub Send_Click()
    Set objMail = Outlook.Application.ActiveInspector.CurrentItem
    objMail.Send
End Sub

Would I be right in thinking that this is a public sub?

My goal is when you hit the ‘send’ button a form will appear with a dropdown box, this has 4 options which are the sensitivity options you can use with the emails, except I have created them as macros and added code on them (to add to subject and footer of message) but I wont it so a user is forced to make a selection, hence why I am creating this form instead of having the 4 buttons.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T18:04:47+00:00Added an answer on June 7, 2026 at 6:04 pm

    My goal is when you hit the ‘send’ button a form will appear with a dropdown box, this has 4 options which are the sensitivity options you can use with the emails, except I have created them as macros and added code on them (to add to subject and footer of message) but I wont it so a user is forced to make a selection, hence why I am creating this form instead of having the 4 buttons. – Rsmithy 36 mins ago

    If I understand you correctly, Yes it is possible to do what you want. See this Example

    Let’s say you have a userform with 4 options A,B,C and D and the userform code is

    Private Sub UserForm_Initialize()
        ComboBox1.AddItem "A"
        ComboBox1.AddItem "B"
        ComboBox1.AddItem "C"
        ComboBox1.AddItem "D"
    End Sub
    
    Private Sub CommandButton1_Click()
        lstNo = ComboBox1.ListIndex
        Unload Me
    End Sub
    

    Next Paste this in a module

    Public lstNo As Long
    

    and this in the ThisOutlookSession

    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
        UserForm1.Show
    
        MsgBox "user chose " & lstNo & "from combo"
    
        Select Case lstNo
        Case -1
            'User didn't select anything in the combo
        Case 0
            'User selected option 1 in the combo
        Case 1
            'User selected option 2 in the combo
        Case 2
            'User selected option 3 in the combo
        Case 3
            'User selected option 4 in the combo
        End Select
    End Sub
    

    Replace the above comments in the Select Statement` with the Macro Names that you want executed depending on the user choice.

    SNAPSHOTS IN ACTION

    enter image description here

    And this is what you get when you select the Option D (ListIndex 3)

    enter image description here

    FOLLOWUP

    Dim email As String, info As String
    
    Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
        UserForm1.Show
    
        Select Case lstNo
            Case -1
                'User didn't select anything, default will be used
            Case 0
                With Item
                    .Sensitivity = olNormal
                    .Save
                End With
            Case 1
                With Item
                    .Sensitivity = olPersonal
                    .Save
                End With
            Case 2
                With Item
                    .Sensitivity = olPrivate
                    .Save
                End With
            Case 3
                With Item
                    .Sensitivity = olConfidential
                    .Subject = .Subject & " - [CONFIDENTIAL]"
                    Email = .HTMLBody
                    info = " <html> <body> <FONT color=#666666> <font-size: 11px> <p></p> AUTO TEXT: " & _
                    "This message has been marked as 'CONFIDENTIAL' please treat it as such </body> </font> </html>"
                    .HTMLBody = Email & info
                    .Save
                End With
        End Select
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I want to hit one URL that show an image in half page
I want my user to be able to hit the submit button and have
i want to reduce the number of times i hit the data base to
I want to display sum of a column in a textbox when I hit
today i hit a really annoing problem with wpf. i just want to align
I'm trying to figure out Elisp, and I've hit a roadblock. I want a
I want to hit every page on my internal website to see if any
I don't want to hit the server and bring back every row when I
I want to hit a Post request in android with an Input xml and
I have a situation where I want to hit a button in the GSP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.