+ Reply to Thread
Results 1 to 2 of 2

Closing Excel 2013 after sending email

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    Poland
    MS-Off Ver
    2013
    Posts
    87

    Closing Excel 2013 after sending email

    Hi Excel Experts,

    I have a macro which update a pivot table and if there is a change in pivot table send an e-mail if not saved and closed workbook (the workbook is open automatically by windows scheduler).
    The problem concern closing whole Excel 2013 window.
    If there is no change in PT my workbook does not close and I see a grey window of excel and when there is a change after update and sending email, I see my pivot table in open workbook.

    How sould I modified a code to closed workbook no meter if there is a change or no in PT.

    http://www.excelforum.pl/topics3/jez...je-vt47475.htm

    Thanks for help !

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-08-2014
    Location
    United Kingdom
    MS-Off Ver
    Office 2010, Office 2013 & Office 2016 / 365
    Posts
    23

    Re: Closing Excel 2013 after sending email

    Hello,

    The grey window will appear when the worksheet is closed and the application is left open.

    If you just want to close the window make sure the window to be closed is active and then close the active window:

    Please Login or Register  to view this content.
    or

    Please Login or Register  to view this content.
    to save changes. This should close that particular window an leave other excel windows running.

    Hope this helps?

    Thanks,

    Adam

+ 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. Excel 2013 not closing after closing workbook
    By SBennett212 in forum Excel General
    Replies: 4
    Last Post: 04-04-2015, 11:07 AM
  2. olMail - Email Attachment Variable. Sending Email through Excel
    By ShakJames in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2014, 07:55 AM
  3. olMail - Email Attachment Variable. Sending Email through Excel
    By ShakJames in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2014, 07:41 AM
  4. Sending HTML email via excel VBA - arriving as RTF email
    By Shuter1 in forum Outlook Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 04:35 AM
  5. closing word without saving in sequence after sending email - help please!!!
    By rabbi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2005, 08:08 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