+ Reply to Thread
Results 1 to 9 of 9

Send as email on workbook open

  1. #1
    Forum Contributor
    Join Date
    04-20-2017
    Location
    SWEDEN
    MS-Off Ver
    2016
    Posts
    123

    Send as email on workbook open

    I've been trying to insert a workbook open where the whole wb gets sent to an email everytime its opened, but cant for the love of God get it to work, does someone have a vba for doing so?

    The CATCH is, it's not supposed to start this sending until we cross the date 4/10-2019
    Last edited by HereComesTheBoom; 08-02-2019 at 03:21 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Send as email on workbook open

    Maybe something like this?
    Please Login or Register  to view this content.
    BSB

  3. #3
    Forum Contributor
    Join Date
    04-20-2017
    Location
    SWEDEN
    MS-Off Ver
    2016
    Posts
    123

    Re: Send as email on workbook open

    So, the problem is - im testing it as module without the if-statement, like this.

    Please Login or Register  to view this content.
    And nothing sends, I'm blind

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Send as email on workbook open

    Have you a valid email address here
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-20-2017
    Location
    SWEDEN
    MS-Off Ver
    2016
    Posts
    123

    Re: Send as email on workbook open

    Yes, my own

  6. #6
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Send as email on workbook open

    works here - have you placed code in workbook module
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-20-2017
    Location
    SWEDEN
    MS-Off Ver
    2016
    Posts
    123

    Re: Send as email on workbook open

    Yes, it's in a module.

    Could this be because I have another Workbook_open in This_Workbook?

    There I have this running
    Please Login or Register  to view this content.

  8. #8
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Re: Send as email on workbook open

    Good morning HereComesTheBoom

    Could this be because I have another Workbook_open in This_Workbook?
    Yes - you must roll all the code in your Workbook_Open module into one module.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  9. #9
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: Send as email on workbook open

    Rename the email code and place in ordinary module

    at the end of your open workbook above add the line

    Please Login or Register  to view this content.
    in otherwords call the email macro from your code above
    Attached Files Attached Files
    Last edited by nigelog; 08-02-2019 at 07:00 AM.

+ 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. Open Excel, refresh, save and send via email.
    By Aerator in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2015, 05:55 PM
  2. VBA code to copy data from current workbook to another workbook and send email
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-05-2015, 06:47 AM
  3. open workbook - check date - send email
    By fabrecass in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2013, 05:07 AM
  4. [SOLVED] VBA code - automatically open outlook to send email
    By LindaABH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-06-2012, 01:44 AM
  5. VBA Code to open email in Excel and insert a range and send
    By Bozo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-09-2011, 04:22 PM
  6. Open Outlook and send email
    By linsonline in forum Excel General
    Replies: 2
    Last Post: 05-06-2011, 09:29 PM
  7. How prevent email address from being hotlinked to open send msg wi
    By John in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2006, 06:40 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