
- #How to turn off outlook 2016 reminders windows 10
- #How to turn off outlook 2016 reminders code
- #How to turn off outlook 2016 reminders windows
' SetWindowPos won't work while user session is locked, so we must double-check. HTopWnd = GetWindow(hTopWnd, GW_HWNDNEXT) While hTopWnd 0 And 0 = IsWindowVisible(hTopWnd) If SetWindowPos(hRemWnd, HWND_TOP, 0, 0, 0, 0, FLAGS) 0 Thenĭim hTopWnd As LongPtr: hTopWnd = GetWindow(hRemWnd, GW_HWNDFIRST) If hRemWnd = 0 Then hRemWnd = FindReminderWindow(100) Public Sub TriggerEvent(ByVal hWnd As LongPtr, ByVal uMsg As LongPtr, ByVal idevent As LongPtr, ByVal Systime As LongPtr) If TimerID = 0 Then TimerID = SetTimer(0, 0, Seconds * 1000, AddressOf TriggerEvent)ĭim Success As LongPtr: Success = KillTimer(0, TimerID) Public Sub ActivateTimer(ByVal Seconds As LongPtr) 'The SetTimer call accepts milliseconds ' Store the handle of the reminder window ' Need a timer ID to turn off the timer. If the timer ID 0 then the timer is running Private Const FLAGS As LongPtr = SWP_NOMOVE Or SWP_NOSIZE Or SWP_NOACTIVATE (ByVal hWnd As LongPtr, ByVal uCmd As LongPtr) _

Public Declare PtrSafe Function GetWindow Lib "user32" _ Public Declare PtrSafe Function GetTopWindow Lib "user32" _ (ByVal hWnd As LongPtr, ByVal hWndInsertAfter As LongPtr, ByVal X As LongPtr, ByVal Y As LongPtr, _īyVal cx As LongPtr, ByVal cy As LongPtr, ByVal wFlags As LongPtr) _ Private Declare PtrSafe Function SetWindowPos Lib "user32" _ (ByVal hWnd As LongPtr, ByVal nCmdShow As LongPtr) _ Private Declare PtrSafe Function ShowWindow Lib "user32" _ (ByVal lpClassName As String, ByVal lpWindowName As String) _ Private Declare PtrSafe Function FindWindow Lib "user32" Alias "FindWindowA" _ Private Declare PtrSafe Function IsWindowVisible Lib "user32" _ (ByVal hWnd As LongPtr, ByVal nIDEvent As LongPtr) _ Private Declare PtrSafe Function KillTimer Lib "user32" _ (ByVal hWnd As LongPtr, ByVal nIDEvent As LongPtr, ByVal uElapse As LongPtr, ByVal lpTimerfunc As LongPtr) _ Private Declare PtrSafe Function SetTimer Lib "user32" _
#How to turn off outlook 2016 reminders code
Again using Chrome (not Edge!) to view this page, copy/paste the following code from here into the VBA editor:


#How to turn off outlook 2016 reminders windows
These instructions will cause the reminder windows to always show on top but without stealing keyboard focus.
#How to turn off outlook 2016 reminders windows 10
These instructions have been verified to work on Windows 10 with Office 2016.
