Close Outlook automatically and save open items to drafts

Hello
I have the following problem: some of my customers work with Outlook + POP3 (no Exchange Server) and from time to time an employee forgets to close Outlook after working hour. Because of the open PST-File I have problems with the backup (the open PST-File is
in use and therfore the backup fails). Now I have wrote a small script to kill the outlook process on every machine at 10 p.m. But the next day when the employee starts Outlook he gets an annoying message about the PST-File was not closed properly and he has
to wait up to 10 Minutes until Outlook starts. So my question: is there a tool or a script to close outlook properly?
Btw: I have already found some sripts to close outlook in a decent way BUT: if the user has an open New E-Mail Window open all the scripts I found where not able to handle this situation - this is because in that case Outlook asks whether you want to save the
open New Massage to Drafts or not (and Outlooks does not close until you press the YES, NO or CANCEL Button.
Here is one of the Script I found (AutoHotKey Script):
SetTitleMatchMode RegEx
IfWinExist .*Microsoft\sOutlook
WinClose .*Microsoft\sOutlook
ExitApp
This script works perfectly when no additional Outlook Item Window is open - Outlooks then closes properly and no problem arises with the PST-File. But as already mentioned when the user has a open New Item Window (e.g. new Mail he just started to compose)
Outlook does not close but asks the user what to do. What I need is a script or a program that answers automatically to the Outlook question dialog box "Do you want to save changes?" YES and then closes Outlook properly. The next Day the user will
find his new / unfinished Mail item in the drafts folder.
I have also found a small program called "Close Outlook" by Douglas J. Nakakihara. But this tool also fails when an open (new) Message Windows exists.
Any ideas?
Markus

This code works for me
I created a batch file CloseOL.bat to call the CloseOL.vbs.
Here's the code for the batch file:
@echo off
cscript "CloseOL.VBS"
:EXIT
And here's the code for CloseOL.vbs:
Dim oOL 'As Outlook.Application
Dim olkIns
Set oOL = CreateObject("Outlook.Application")
If oOL Is Nothing Then
    'no need to do anything, Outlook is not running
Else
    'Outlook running
    Do while oOL.Inspectors.Count <> 0
        For each olkIns in oOl.Inspectors
                olkIns.Close olSave
            Next
    Loop
    oOL.Session.Logoff
    oOL.Quit
End If
Set oOL = Nothing
Hope this helps

Similar Messages

  • My safari is not working. Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen stay

    . Every time i click on it says to reopen or dont reopen. i press reopen i gives me this long screen and it says reopen or press okay. when i press ok it closes the box and doesnt open. when i press reopen the long screen and stays like that.

    If Safari crashes on launch and you don't have another web browser, you should be able to launch Safari by starting up in safe mode.
    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.
    After removing the malware, remember to reset your home page in all the web browsers affected, if it was changed.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • LSMW-Vendor master data and Vendor Open items Upload

    Dear Experts,
    I need help on the following
    Do you have any docs with you where I can familiarize myself with the AP upload programs in LSMW?
    sample template for me  to test the upload via LSMW? sample template and the programs used to upload the vendor master and Vendor open items.how to use the program for example like some instruction docs step by step doc etc.
    Thanks n Regards
    Rena.

    hi
    there are 14 steps u have to go through while uploading...
    first u create Project and Sub Projects...
    1 Maintain Object Attributes
       select Batch Input Recording.
               click on Overview.
       enter Recording
    Then it wil ask for the Transaction code there u enter XK01 for creation
    u enter all The details Which are Given to u in Excel by ur CTM Members.
    note: Dont use Mouse while Entering the data.Use Only Key Board.
    After Entering all the required details  click on  Save...
    select Default All
    System-> List -> Save -> Local File
    Convert Excel to Text File(Text Tab Limited)
      2 Maintain Source Structures
         Create Source Structure.
    3 Maintain Source Fields
         click on Copy Fields
         Select From Data File
         Select Max Len
         save + back
      4 Maintain Structure Relations
         save+back
       5 Maintain Field Mapping and Conversion Rules
          Extras -> Auto Field Mapping
          select Edit All Target Fields
          save + Back
       7 Specify Files
         Click on Execute Button or press F8.Select u201CSPECIFY FILESu201D click on Execute or press ctrl+F8.
         then double click on the u201CLEGACY DATA FILEu201D and select the text file to be uploaded
         Then select u201CTABULATORu201D and u201CFIELDS NAMES AT START OF FILEu201D
        8 Assign Files
           SAVE AND CLICK ON BACK
         9 Read Data
             Execute + back
        10 Display Read Data
             Back
        11 Convert Data
              Execute + back
        12 Display Converted Data
             back
        13 Create Batch Input Session
             Select u201CKeep Batch Input Folderu201D click on Execute.
         14 Run Batch Input Session
              Select Processing mode
               1)     Process in Foreground: Executes Each Step.
                2)     Display Errors Only: Displays only the Errors.
              3)     Background: Skips The Errors.
    Select Extended Log and Click on Process as shown in Screen Shot.
    Edited by: Smitha KB on Feb 24, 2009 10:32 AM

  • Automatically clear the open items for a GL account cross company codes

    Hi FICO experts,
    Can anyone help me on the following issue urgently?
    There are journal entries posted to same GL account with different company code. Is there any way to automatically clear the open items sitting in the GL account in company code A to against the open items for the same GL account in company code B.
    The example is below:
    Journal in company code A
    Dr. 840410      $100
      Cr. 111300       $100
    Journal in company code B
    Dr. 111301   $100
      Cr. 840410      $100
    Now I want to automatically clear account  840410 by using assignment or text in the journal entry.
    It will be highly appreciated for any instructions.
    Adele

    Hello Adele Wang,
    You can enter cross-company code transactions in one step in the General Ledger, Accounts Receivable, and Accounts Payable application components. This function would be used, for example, for centralized procurement or payment.
    Integration:For centralized payments, each individual company code enters its own invoices separately, while a central company code pays them. When you are clearing open items, the system makes clearing entries between the company codes participating in the clearing procedure. These clearing entries represent the receivables and payables that exist between the company codes in centralized payment.
    Prerequisites:You have specified which company codes are to be processed via a single company code. In this specification, you can distinguish between clearing transactions. You can therefore have different combinations of company codes for incoming and outgoing payments.
    You have specified the clearing accounts that record the receivables and payables between the individual company codes. The system posts to these accounts automatically when clearing the open items.
    You need to make  the required settings in the activity Prepare Cross-Company Code Manual Payments in Customizing for Financial Accounting (Accounts Receivable and Accounts Payable->Business Transactions->Outgoing Payments->Manual Outgoing Payments).
    Features:For each company code, the system generates a separate clearing document. A joint transaction number marks these documents as belonging together.
    Example:For a clearing transaction (incoming payment, outgoing payment), you have agreed in Customizing that if company code 0001 is specified, open items are also selected from other company codes (0002 and 0003).
    Hope I had been able to help you. Please assign points.
    Rgds
    manish
    Clearing can then also be carried out if the account to be cleared has not been created in company code 0001. As long as no items have to be posted to this account in company code 0001, it is not necessary to create a master record for the account in company code 0001.
    See also:

  • Transfer of customer and vendor open items available? (like asset transfer)

    Hello,
    May I ask you about your opinion.
    In SAP we have functionality to transfer assets from burks"A" to bukrs "B".
    Do we also have this functionality for customer and vendor open items?
    Thank you for your opinion and expertise.
    all the best Erwin

    Hi,
    Please check following links
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f33e12-aeac-2a10-2186-ed8301f778ba?overridelayout=t…
    Cross company-code invoice posting and configuration - ERP Financials - SCN Wiki
    Regards,
    Tejas

  • Customer and vendor open items

    Hi All,
                What is customer and vendor open items.

    Hello Shailesh,
    When you procure some goods from a Vendor you create a "Vendor Invoice" for it & similarly when you sell goods to a customer you create a "Customer Invoice".
    So in simple accounting terms you need to pay money to a vendor & get money from a customer (i am not getting into complicated cases).
    The vendor invoices for which you have not paid money are called "Vendor Open Items". Similarly the customer invoices for which you have not received money are called "Customer Open Items".
    The SAP tables for this are:
    BSIK --> Vendor Open Items
    BSID --> Customer Open Items.
    Hope this helps.
    BR,
    Suhas

  • Credit Management (Open Items and Oldest Open Items)

    I have 2 questions.
    1)What is the difference between Open Items check and Oldest open items
    2) I want to activate a Credit management check which should work in way that the Order will be blocked on the basis of Payment term check
    Let say if I am using the Payment terms 0001 i.e Payment immediately due net .now what I want is that if I post the first invoice system as configured will check only the Credit check againt the credit Limit but when i post the 2nd invoice on the same day and the first invoice is not cleared system should give a warning message for it .
    Currenlty as i Configured it working but not for the same day option its give a warning on the 2nd day's invoice
    SO Need the help of Experts.
    Thanks in advance

    Hi,
    Open items check means it will consider all the open items when it is doing credit check. Here it adds all the open items amount and do the credit check..
    Oldest open item means it will consider only the oldest open item and based on tht i will do credit check..Here i will check the oldest open item value and its date then do the credit check..
    Coming to payment terms check, system is responding correctly.. because payment terms are immed due net. tht means still time is there in the same day. that is the reason it is not blocking the second document.
    once move to 2nd day then it means first doc is not cleared tht is the reason it is blocking the 2 nd doc on 2nd doc..
    Hope u have understand..
    Regards
    Sankar

  • Reset & reverse document with open item managed and none open item managed

    Dear forum,
    I would like to confirm the below.
    If i have a posted document where the double entry has open item managed account and none open item managed account and where the open item managed account is cleared, how can i reverse this document.
    The problem now is FBRA cannot reset and reverse (as the document partly has none open item managed account) and FB08 also cannot reverse (as part of the account is open item managed account and it is cleared).
    Besides manually reverse via FB01, any other method?
    Thanks
    Moderator: Please, avoid asking basic questions

    Which document are you trying to clear using FBRA?  You should reset the "clearing document" using FBRA; not the original document that has one open item and one non-open item.  Once you reset the clearing document using FBRA, you should then be able to reverse the original document (the one that has one open item and one non-open item) using FB08.

  • Do F-32 Clear Customer and Process Open Items just do BKPF/BSEG adds/chgs ?

    !uestion 1:
    When a user executes F-32 in  "clear customer" and "process open items" modalities, are BKPF and BSEG the only tables that actually get changed via adds or updates?
    Or are there other tables affected as well?
    Question 2:
    If BKPF and BSEG are the only affected tables, can I safely emulate the effect of the F-32 Clear Customer and Process Open Items Modalities by:
    1) examining the BKPF/BSEG records added or changed;
    2) using the appropriate BAPI(s) to accomplish these adds/changes (like BAPI_ACC_DOCUMENT_POST)
    Question 3:
    If BKPF and BSEG are NOT the only tables affected by F-32 Clear Customer and Process Open Items, can I emulate these modalities of F-32 thru an appropriate combinaton of BAPIs ?
    Note:
    The reason Im asking these questions the way I am is because a search  of SDN turns up no really good answer to the question of whether the Clear Customer and Process Open Items modlaities of F-32 can be emulated by one BAPI or a combination of BAPI's.
    So by formulating questions (1-3) the way I have, I'm hoping that someone will provide SDN with a clear and definitive answer to the "F-32 BAPI Emulation" question.
    Thanks for any expert advice anyone can provide.
    Best
    djh

    Actually, the "right" answer in this case is to call CLEAR_DOCUMENTS and model the call after the call in PRELIMINARY_POSTING_ZANF_CLEAR

  • Foreign currency valuation (new) for vendors and costumers open items

    Dear friends,
    Is there any option  that when i run the foreign currency valuation program (fagl_fc_val) for vendors and costumers open line items not to generate the reverse posting? I have read in the sap library that the reverse posting is optional and the when you pay the invoice the system works the difference out between the valuation and the exchange rate of the payment, but i can not find it in customizing.
    thanks in advance
    marc

    I also like to add that it is best to post reversal because normally the revaluation entry is posted on the last date of the month and the reversal entry is posted on the first day of the following month, which means that the following month will have a new entry on the last date independent of the entry made in the prior month.
    The idea of posting the valuation entry is to value the customer and vendor open items which were posted (let us say 3 months ago in a foreign currency) with the latest exchange rate as of the end of the month. This way these payables and receivables stand corrected.
    Is there any reason why you don't want to post the reversal entry?

  • FEBAN automatically closed the Open item for Debtor

    Open items in our company usually closed manually. But this time FEBAN closed an open item (Debtor). Where can i change the configuration for not automatically closing the open item by EBS. Any help? Points will be awarded.

    HI,
    Change the posting type in the EBS configuration for that particular posting rule.
    rgds

  • Camera problem: "Could not start the camera. Close other applications and try opening the camera again" error.

    Device info
    Your carrier: Etisalat
    Model info and OS version (Go to Settings, then Options, then about): Bold 9900, OS 7.1
    Apps and free space
    Did a battery pull fix your issue? No
    Apps installed and their version if possible: BBM, Facebook, Twitter, App world, Screen muncher.
    BT device model/version (you will have to look at the BT device): (Sorry, don't know what this is).
    When writing your question
    Any other details that would help us out with your issue:
    Good description of what is really wrong and how to reproduce if possible. Details of what you did before:
    What is worth a thousand words
    I simply open the camera and a pop up saying "Could not start the camera. Close other applications and try opening the camera again" appears and only lets me press okay. 
    Memory seems to be okay, can't figure out what it may be.
    Please, how can I fix this? Any help is appriciated.

     I had the same problem with my Bold and tried everything until out of frustration i just clicked the center picture taking button before the "Could not start the camera. Close other applications and try opening the camera again" message came up and believe it or not that solved the problem. Works fine now!

  • When I close firefox window and later open firefox window it opens with blank page and nosidebar bookmarks

    when I close firefox window and later open firefox window it opens with blank page and nosidebar bookmarks

    Sounds like Firefox is "hanging at exit". That problem is frequently caused by an Extension or a Plugin. Read all of the following articles.<br /><br />
    #Stop the Firefox process:
    #*[http://kb.mozillazine.org/Kill_application Mozillazine - Kill application]
    #*Windows 7 users click [http://www.techrepublic.com/blog/window-on-windows/reap-the-benefits-of-windows-7s-task-manager/2576 here]
    #*Mac users: http://techheavy.com/2011/02/the-mac-task-manager/
    #Why Firefox may hang:
    #*[http://support.mozilla.com/en-US/kb/Firefox+hangs Firefox hangs] (see Hang at exit)
    #*[http://kb.mozillazine.org/Firefox_hangs Firefox hangs (Mozillazine)] (see Hang at exit and Closing Firefox properly)
    #*[https://support.mozilla.com/en-US/kb/Firefox+is+already+running+but+is+not+responding Firefox is already running but is not responding]
    #Use Firefox Safe Mode to find a problem with an Extension or Plugin:
    #*Don't check anything when entering Safe Mode, just continue
    #*If the problem does not occur in Safe Mode it is probably and Extension or Plugin causing the problem
    #*See:
    #**[[Safe Mode]] and [http://kb.mozillazine.org/Safe_Mode Safe Mode (Mozillazine)]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes Troubleshooting extensions and themes]
    #**[http://support.mozilla.com/en-US/kb/Troubleshooting+plugins Troubleshooting plugins]
    #**[http://support.mozilla.com/en-US/kb/Basic+Troubleshooting Basic Troubleshooting]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • I have a problem when i close the prgram and i open it agin it open on the page which i closed at it

    when i close firefox at any page and also when i close my pc and then i open the program i find it open on last page which i closed at ,, although i made home page for it to open at and it doesn't make the order

    Check in preferences > general > Startup: Do you have "Show my windows and tabs from last time" selected? If so change to "Show my home page" (or blank page).
    Note: this may happen when quitting Firefox, and you inadvertently click "Save and Quit" and select "Do not ask next time".

  • Automatic clearing of open items

    hi,
    we have customers with 'dummy-invoices' in our system.
    There is a document in FI with a value of 0,01 Euro on the customer.
    this document is an open item and never will be cleared.
    is there any possibility for automatic clearing of such open items ? program SAPF124 does the clearing
    only when there is a second document, right ?
    reg, Martin

    Hi,
    Clearing is always against counterpart; that's the concept of this funcionality.
    Regards,
    Eli

Maybe you are looking for