+ Reply to Thread
Results 1 to 6 of 6

UserForm Email Control

  1. #1
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    UserForm Email Control

    In my VBA contacts table I have an email column for all emails. When I click an email from within the table my email program opens and the email address is transferred to the TO: field.

    However when I click on the txtEmail box I have in my UserForm nothing happens.

    Is it possible to change this so when I click in the txtEmail Box the same will happens like when I click in the Table?

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: UserForm Email Control

    Hello oskar44,

    Yes, it can be done. This uses the Windows API which can be a little tricky. You will need to attach a copy of your workbook. I can then add then needed code and post back the workbook with the additions made.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: UserForm Email Control

    You might want to look at the FollowHyperlink method.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    Re: UserForm Email Control

    Thanks Leith, please see the attached
    Attached Files Attached Files
    Last edited by oskar44; 06-17-2015 at 08:02 AM.

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: UserForm Email Control

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    09-29-2014
    Location
    Montreal, Canada
    MS-Off Ver
    2013
    Posts
    222

    Re: UserForm Email Control

    Thank you Norie, your code worked nicely.

+ 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. [SOLVED] Createing Email from Userform - Body of email contain content from textbox
    By honger in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2014, 08:44 PM
  2. [SOLVED] Excel 2007, Userform Textbox Date Format and Calendar Control Userform
    By riffology in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-03-2014, 06:18 PM
  3. send form as an email from the control button
    By Robbosan in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 04-05-2013, 06:38 AM
  4. control outlook to reply to email
    By as_sass in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2005, 05:32 PM
  5. sending worksheet by email using control button
    By kiwicolin in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 02-24-2005, 12:58 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