Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Beforeclose event VBA question

Latest post Sat, Mar 22 2008 8:37 AM by Craig Ottley. 1 replies.
  • Fri, Mar 21 2008 3:42 PM

    Beforeclose event VBA question

    I would like to receive an email notification with a hyperlink to an excel workbook whenever someone completes said workbook (actually a customized template we use for each of our individual projects). 

     After a little digging, one approach seems to be to create a beforeclose event with a customized dialog box from which, if the user clicks yes, the email is automatically generated and sent (if NO is clicked, the workbook closes as usual).  I'm starting out with VBA so I would appreciate any suggestions or help on the code required for such a n event or alternative ideas. Thank you in advance!!!  gabonais@yahoo.com

     

    Filed under: , , ,
    • Post Points: 21
  • Sat, Mar 22 2008 8:37 AM In reply to

    Re: Beforeclose event VBA question

    Check Ron de Bruins website there are more than enough examples on getting this to  work...

     I favour the CDO approach as all computer's in work have the IIS SMTP settings switched in, so works a treat...

     

    http://www.rondebruin.nl/sendmail.htm

     

    HTH

     

    Craig

    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.