+ Reply to Thread
Results 1 to 7 of 7

Send an Email when closing Userform

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Send an Email when closing Userform

    i am trying to send an email in the background of a USerform when this Userform is closed, i don’t want to create another window, and the email should be sent without disturbing the person that is using the database. The email should be just that a blank email, if possible with the Subject “Data has been loaded” but not really necessary, is this Possible.??

  2. #2
    Forum Expert Tinbendr's Avatar
    Join Date
    06-26-2012
    Location
    USA
    MS-Off Ver
    Office 2010
    Posts
    2,138

    Re: Send an Email when closing Userform

    This article should accomplish that.
    and the email should be sent without disturbing the person
    That's a bit of a hit or miss, depending on their security settings.

    You can use Application.ScreenUpdating = False, just before the Send and then =True, after the Send, to minimize screen actions.
    David
    (*) Reputation points appreciated.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Send an Email when closing Userform

    Here is the code.. Give it a try.. Modify it as per your needs..

    Please Login or Register  to view this content.
    Last edited by Vikas_Gautam; 12-26-2014 at 06:02 AM.
    Regards,
    Vikas Gautam
    Excel-buzz.blogspot.com

    Excel is not a matter of Experience, its a matter of Application.

    Say Thanks, Click * Add Reputation

  4. #4
    Registered User
    Join Date
    04-22-2014
    Location
    california
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Send an Email when closing Userform

    Thanks man, this work really nice. two. questions. this work really nice sending from my work computer, will this work in any computer within my network, we all have the same sever and @extension.com?, once i try to send the email it ask me if i want to deny or allow to send an email? is here any way you can prevent that message to show up.

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Send an Email when closing Userform

    Okay..
    I have googled and got the reason behind that 'Allow or Deny' window.
    Actually, it were MS Outlook Programmatic access settings (Microsoft's Enhanced Security settings) which were creating the problem.
    I have found a fix for it. Download and install the fix and try to rerun the code and see if that shows up or not.
    Download page
    http://support.microsoft.com/kb/953925
    Knowledge page ( Read it for more info regarding the problem)
    http://support.microsoft.com/kb/953806
    https://social.technet.microsoft.com...ccess-security

    Hope this will solve the issue.

  6. #6
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Send an Email when closing Userform

    I have been able to find a workaround for that Allow Deny nuisance.
    Here is the revised code:-
    Please Login or Register  to view this content.

  7. #7
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Send an Email when closing Userform

    sorry, Duplicate Post
    Due to internet problems.

+ 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. Workflow with signatures (if cell=x then send email, if signed then send email)
    By Kate2811 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2014, 05:37 AM
  2. Userform that will ad data to specified table and send email with notification
    By AndrzejSnk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-09-2014, 02:17 PM
  3. [SOLVED] Save and Send Userform data to a specific email address based on Combobox value
    By GAMU in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-30-2013, 01:13 PM
  4. Use data from a UserForm to send email
    By tanktata in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 06-11-2011, 03:11 PM
  5. Send email to fixed address on closing workbook
    By Brontosaurus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-06-2010, 08:11 PM

Tags for this Thread

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