+ Reply to Thread
Results 1 to 9 of 9

Display and select email account for bulk emails

  1. #1
    Forum Contributor
    Join Date
    09-22-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 2019
    Posts
    309

    Display and select email account for bulk emails

    Hi
    I have a code in a workbook that will be used by many different people with different email addresses to send bulk emails out. Currently the emails go out from the senders "primary" address.

    Some users will have more than one sender address and will want to use their secondary (or more) address as the "From" address.

    I have a code that counts the number of addresses a user which I've managed to get to bring up an input box, but for some reason the response doesn't display in cell L1 as it's meant to.

    Is it possible to display all the senders addresses in a pop-up box so they can select one and the Code will send the bulk emails from that address?

    Code so far:
    Please Login or Register  to view this content.
    Thanks

    Frankie

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: Display and select email account for bulk emails

    Hi Frankie, you should place the list of accounts in a userform listbox or combobox so that the user selects the one he/she wants to use.
    And to avoid unnecessary userform opening isf the user only has one account just skip the userform.
    Hope my explanation makes sense
    Take a look here (one of the hits with Google): https://social.msdn.microsoft.com/Fo...rum=outlookdev
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: Display and select email account for bulk emails

    Let's try this one to start with.

    If more than 1 account userform pops up with addresses to select from.

    Otherwise primary address is set in range("L1").
    Attached Files Attached Files
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: Display and select email account for bulk emails

    Nice one @bakerman2, works like a charm

  5. #5
    Forum Contributor
    Join Date
    09-22-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 2019
    Posts
    309

    Re: Display and select email account for bulk emails

    Thanks Keebellah. The main issue is that I don't know the addresses of all the people that may use the worksheet so the code needs o find and display any addresses a random user may have. I'll have a go with bakerman2s solution tomorrow when I'm at the computer rather than the iPad. (Not quite as easy on the ipad🤣&#129315

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: Display and select email account for bulk emails

    Bakerma2's solution is the same as I implied, the only think you need to do now is edit the code so that it also reads the contacts of that particular user if you need to select the email addresses.
    At least that is what I can make out of your question and explanation.
    I didn't do anything, the work and credit is all for Bakerman2

  7. #7
    Forum Contributor
    Join Date
    09-22-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Office 2019
    Posts
    309

    Re: Display and select email account for bulk emails

    Bakerman2 work acknowledged. Still appreciate your input though.

    Frankie

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: Display and select email account for bulk emails

    Frankie, the code BAkerman2 has sent you does just that, the list of accounts IS the list that is for the user that is using the file.

  9. #9
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,914

    Re: Display and select email account for bulk emails

    Youre welcome and thanks for rep:.

    PS: Frankie, that's what this forum is all about, Joint Ventures.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Auto-select correct sending account when replying to a forwarded email?
    By twilsonco in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2016, 01:32 AM
  2. [SOLVED] Send Bulk Emails
    By tejboyd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-30-2016, 12:45 AM
  3. Attachments when sending bulk emails
    By bruskieza in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2015, 10:09 AM
  4. Bulk emails with individual attachments.
    By sureshpunna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-09-2014, 03:55 PM
  5. [SOLVED] Bulk emails send use outlook & excel coding macro
    By sonu_kumar444 in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 12-26-2012, 08:06 AM
  6. Replies: 5
    Last Post: 07-03-2012, 02:39 PM
  7. Replies: 0
    Last Post: 12-15-2005, 09:50 PM

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