hide outlook to system tray

Status
Not open for further replies.
M

mahmoud

I want to force users to open outlook 2003 at windoos startup

I found the following :

set shell = createobject("wscript.Shell")

shell.run "outlook.exe", 7, False '... SH_SHOWMINNOACTIVE=7 "should" work

wscript.Sleep 4000 '... may need tweaking 1000=1second

success = shell.appactivate("Outlook Today - Microsoft Outlook") '... window

must match first screen

if success then shell.sendkeys "% n" ' ... Minimize Alt Space Bar - n

i published by group polciy as login script it work just fine

but i need outlook to be hide to system tray how can i do that by login

script ?

any help
 
K

Ken Slovak - [MVP - Outlook]

If you were to use the Outlook object model you'd set the

Application.Explorers.Item(1).WindowState = olMinimized. Or

ActiveExplorer.WindowState.

Using only Win32 API calls you have to post a message to that window's hWnd

to minimize.

"mahmoud" <mahmoud> wrote in message

news:43D04F88-CA1B-4F01-8B4A-19AA733422AB@microsoft.com...
> I want to force users to open outlook 2003 at windoos startup
> I found the following :

> set shell = createobject("wscript.Shell")
> shell.run "outlook.exe", 7, False '... SH_SHOWMINNOACTIVE=7 "should"
> work
> wscript.Sleep 4000 '... may need tweaking 1000=1second
> success = shell.appactivate("Outlook Today - Microsoft Outlook") '...
> window
> must match first screen
> if success then shell.sendkeys "% n" ' ... Minimize Alt Space Bar - n

> i published by group polciy as login script it work just fine
> but i need outlook to be hide to system tray how can i do that by login
> script ?
> any help
>
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Outlook 2007 Hide Messages Option not Available Using Outlook 2
N How to disable shortcuts for Pilcrow in Outlook (Show or hide paragraph marks) Using Outlook 0
I Outlook 2010 - Remove or Hide Suggested Contact Folders Using Outlook 1
S Hide Folders in Outlook 2007 (IMAP) Using Outlook 5
H Outlook 2007 - hide completed tasks from Outlook Today -Solution Using Outlook 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 2
J How to hide/disable send button in Outlook 2007 Outlook VBA and Custom Forms 1
T How do I hide/unhide folders in outlook inbox? BCM (Business Contact Manager) 1
J Hide/disable "Groups", "Shared Calendars" Using Outlook 2
D hide messege issue Using Outlook 1
A Possible to hide ribbon with custom appointment form? Outlook VBA and Custom Forms 3
D Disable or hide "reply" and "reply to all" and "forward" in email from access vba Outlook VBA and Custom Forms 1
K BCM hide subfolders BCM (Business Contact Manager) 1
oliv- HIDE ITEM Outlook VBA and Custom Forms 3
S Hide Timestamp from deleyed message Using Outlook 4
K Hide Default Folders in PST Using Outlook 2
F Hide calendars from shared mailboxes Using Outlook 2
J Ho do I hide the week number on the Calendar Printing Assistant template Using Outlook 4
C How do I hide distribution list from global contacts for certain users? Exchange Server Administration 1
T Is it possible to hide a mailbox but still send on the behalf of. Exchange Server Administration 1
N Appointment Body on Custom Page 2- Hide Default Page Outlook VBA and Custom Forms 2
N How to hide pstStore Outlook VBA and Custom Forms 4
H Hide attachment... Outlook VBA and Custom Forms 3
S hide details of appointments in calendar Using Outlook 8
E Can I hide an explorer or make an explorer modal Outlook VBA and Custom Forms 2
E Can I hide an explorer or make an explorer modal Outlook VBA and Custom Forms 2
C Re: Hide BCM toolbar BCM (Business Contact Manager) 1
Retired Geek Outlook for the MAC with Yahoo accounts now very broken Using Outlook 2
S Outlook 2002- "Send" button has disappeared. Help please. Using Outlook 1
L How Stop Outlook Nag Messages Using Outlook 1
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 1
L I Cannot Sign Into My Outlook Account? Outlook VBA and Custom Forms 0
icacream Outlook 2021 - Google calendar in the peek Using Outlook 0
e_a_g_l_e_p_i Question about installing my Gmail account on my iPhone but still getting messages downloaded to my desktop Outlook. Using Outlook 3
F Want to add second email to Outlook for business use Using Outlook 3
kburrows Outlook Email Body Text Disappears/Overlaps, Folders Switch Around when You Hover, Excel Opens Randomly and Runs in the Background - Profile Corrupt? Using Outlook 0
M using excel to sort outlook appointment items Outlook VBA and Custom Forms 4
e_a_g_l_e_p_i MY Outlook 2021 changed the format of the shortcuts for mail, calendar etc. Using Outlook 10
Z Outlook 2021 Outlook new emails notification not working Using Outlook 5
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
J Outlook 365 Outlook Macro to Sort emails by column "Received" to view the latest email received Outlook VBA and Custom Forms 0
V How to use Comas in a picklist in Outlook forms Outlook VBA and Custom Forms 3
e_a_g_l_e_p_i Question about reinstalling Outlook 2021 Using Outlook 5
A Outlook 365 Outlook (part of 365) now working offline - argh Using Outlook 5
M Outlook Macro to save as Email with a file name format : Date_Timestamp_Sender initial_Email subject Outlook VBA and Custom Forms 0
G LinkedIn tab missing in Outlook 365 (but working in OWA) Using Outlook 0
Jay Freedman Outlook forgets "not junk" marking Using Outlook 0
KurtLass Opening Graphics Attachments in Outlook 2021 Using Outlook 0
P now on office 365 but getting error messages about missing Outlook 2013 cache folders Using Outlook 2

Similar threads

Top