Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
Yuby Mona pe Simpatie
Femeie
23 ani
Arges
cauta Barbat
23 - 45 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [OUTLOOK] Keep Outlook Running without Add-in (relaunch after close) Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
I've tried all the add-ins & tricks I could find for free, even tried preventing an add-in from being disabled, but every few days Outlook somehow disables it and when I close the window it quits instead of minimizing.

The trick below works that works when all else fails.

For someone who wants to eventually close outlook without shutting down, I recommend using powershell to close the process, with the following command in Powershell:

Stop-Process -name OUTLOOK

Note: To start powershell, just go to Start Menu and type powershell, then open Windows Powershell.

Now, to get to the Outlook close-relaunch trick:

1. Open the Visual Basic Editor under Outlook (press ALT+F11)

2. Under Project1 - Microsoft Outlook Objects, double click on ThisOutlookSession

3. Paste the following code in there:

Private Sub Application_Quit()
     Call Shell("C:\Program Files (x86)\Microsoft Office\root\Office16\Outlook.Exe.A.Relaunch.bat", vbHide)
End Sub

Note 1: the path is for a batch file we haven't yet created, but will in steps 5-6
Note 2: the path is for my location of OUTLOOK.EXE file, but you can put the .bat file wherever you want, provided that you change the path in the code above.

4. Click File - Save Project1

5. Open Notepad, paste the following code in it (again change the path of your OUTLOOK.EXE file accordingly):

:: The PING line is to delay the opening of Outlook for a few seconds
:: Apparently if you want for the execution to be delayed for 3 seconds you have to write 4 instead
:: Source for the above line:
PING localhost -n 4 >NUL
"C:\Program Files (x86)\Microsoft Office\root\Office16\OUTLOOK.EXE"

Note: the first 3 lines are comments and can be removed, no problem, the last 2 lines are the important ones.

6. Go to File - Save As, select All Files instead of Text Document, browse to the desired location of your .bat file and save it with your desired name and the .bat extension.

In my case I saved it as Outlook.Exe.A.Relaunch.bat

7. Now you can close Outlook like you normally would by pressing the X button, and you will notice that after the desired number of seconds Outlook will relaunch. Then you can minimize the window.

The source below also has an option to minimize Outlook on launch so that when you accidentally close it and it relaunches, it will open minimized - which was your desired action in the first place.

Source:


_______________________________________


pus acum 2 ani
   
Pagini: 1  

Mergi la