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 8049307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T06:45:19+00:00 2026-06-05T06:45:19+00:00

Someone at work asked me if I could implement an easy system for him

  • 0

Someone at work asked me if I could implement an easy system for him to send out Outlook template-mails based on a few parameters he could enter.

An example would be a message like this:

"Hello,

Please be informed that system **Parameter1** is current down.

Regards,"

I was thinking about making a Form in Outlook VBA that would dynamically look for the amount of times a string styled like a parameter (e.g. @@parameters@@) was found in a certain template and subsequently create a editbox in the form for each found parameter.

The problem is that I obviously would like to add an box for the recipients. I would need to find a way to make the call the Outlook Addressbook and make it behave like one. This was less intuitive than I had hoped. So far I have only managed to do the following:

Dim snd As Outlook.SelectNamesDialog
Dim displayLL As Boolean

Set snd = Application.Session.GetSelectNamesDialog()
snd.NumberOfRecipientSelectors = Outlook.OlRecipientSelectors.olShowTo
snd.AllowMultipleSelection = True
displayLL = snd.display()

As you can see, this only pops up the addressbook and allows me to select an few addresses. But I’m stumped on how I can actually make some fields that will actually act like the “To:” and “CC:” fields in a regular Outlook mail.

  • 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-05T06:45:20+00:00Added an answer on June 5, 2026 at 6:45 am

    Not sure how relevant this is, considering I eventually took quite a different route, but I thought I’d still add this since no-one answered.

    I simply created a form that would list all templates by searching through the templates folder in the %AppData%. I would then loop through the entire mail looking for parameter-styled strings and ask for the desired value each time I would encounter such a string (through a simply inputbox). Instead of adding a custom “recipients” box, I simply opened a new mail with the parameters filled out correctly.
    The user could then simply add recipients to the mail like he usually would, and he was fine with this. That way, he was also able to double-check if the mail indeed looked exactly like he wanted to.

    Nothing fancy or something that a 7-year old wouldn’t be able to do, but it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Someone at work just asked for the reasoning behind having to wrap a wait
Someone has already asked, How does the DiggBar work? in a previous question. While
I'm sure this has been asked many times but I couldn't work out what
Today at work someone tried to convince me that: {$obj->getTableInfo()} is fine for smarty/mvc/templating
Someone at my work moved a folder to a different location. But he didn't
I am debugging someone else's work and the solution is quite large. When I
How do you work with someone when they haven't been able to see that
Can someone please explain why this doesn't work? MyClass myClass1 = new MyClass(); object
Can someone explain why this code doesn't work? Intent i = new Intent(this.context, SomeClass.class);
Can someone explain why this doesn't work? int main() { float* x; float a,

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.