Next Item & Previous Item Events

  • Thread starter tneslony@gmail.com
  • Start date
Status
Not open for further replies.
T

tneslony@gmail.com

Greetings all,

Does anyone know of a reliable way for capturing when a user presses

the Next Item or Previous Item buttons at the top of the email form?

I'm tempted just to disable those buttons as they've caused me so much

grief. :] Let me know. Thanks!

-Tim
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
You can use one variable declared WithEvents for each of the buttons and

capture the click on it. For instance:

Private WithEvents m_PreviousItem As Office.CommandBarButton

Private Sub m_PreviousItem_Click(ByVal Ctrl As Office.CommandBarButton,

CancelDefault As Boolean)

Debug.Print "m_PreviousItem_Click"

End Sub

Private Sub SetButtons()

Dim Bars As Office.CommandBars

Set Bars = Application.ActiveInspector.CommandBars

Set m_PreviousItem = Bars.FindControl(, 359)

End Sub

Best regards

Michael Bauer

Am Wed, 6 May 2009 12:32:15 -0700 (PDT) schrieb tneslony@gmail.com:


> Greetings all,

> Does anyone know of a reliable way for capturing when a user presses
> the Next Item or Previous Item buttons at the top of the email form?
> I'm tempted just to disable those buttons as they've caused me so much
> grief. :] Let me know. Thanks!

> -Tim
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
V How to add 'Previous Item' and 'Next Item' to the Quick Access Toolbar Using Outlook 1
B Zoom automatically next email item (VBA) Outlook VBA and Custom Forms 2
A Custom form - hitting 'next item' button hangs Outlook Outlook VBA and Custom Forms 2
A how to capture events for next item Outlook VBA and Custom Forms 10
T Here is Practical Explanation about Next Life, Purpose of Human Life, philosophical/religious facts, theories etc. Using Outlook 0
D Add date next to day name in Outlook Today calendar view Using Outlook 1
D after delete mail, open the next one Outlook VBA and Custom Forms 0
Witzker Macro to set contact reminder to next day 9:00 Outlook VBA and Custom Forms 45
M Setting flag follow up for next business day Outlook VBA and Custom Forms 1
D Next Available Meeting with Userform Variables Outlook VBA and Custom Forms 1
F Set (flagged) reminder for next business day Using Outlook 4
X Delay sending an email until the next working day (public holidays) Outlook VBA and Custom Forms 0
S set a flag task date as the next weekday Outlook VBA and Custom Forms 4
M Change default "automatically test account settings when Next is clicked" Using Outlook 1
Connie Boyer Exporting Outlook calendar/find next repeating meeting Using Outlook 3
P How to save sent mail and forward it the next day Exchange Server Administration 3
M what's next after Outlook? Using Outlook 9
S Outlook 2010: Message Rules come back next time I restart Outlook Using Outlook 0
B Need help adding an image next to the Month Name in the header. Using Outlook 1
J Print next 7 days view of calendar (2010) Using Outlook 3
E Next five calendar days Using Outlook 2
P Task view - due next 21 days Using Outlook 1
W How do I calculate the next recurrence date? Outlook VBA and Custom Forms 1
H Outlook 365 O365 outlook calendar item editing Using Outlook 1
P "Item could not be moved" message occurs frequently for IMAP inbox, Office 365 Using Outlook 0
O In Agenda-view - How to copy an existing item months ahead or back? Using Outlook 0
S Outlook 2016 dont delete inbox item Using Outlook 0
talla Can't open Outlook Item. Using Outlook 0
N Item cannot be saved because it was modified by another user or window, and, Item could not be moved... Using Outlook 0
S Command Button_Click action on Item/Reminder Outlook VBA and Custom Forms 3
A Unflag Inbox and Flag Inbox with Orange Category After Item is send Outlook VBA and Custom Forms 3
A Run-time error '430' on certain emails when trying to set "Outlook.mailitem" as "ActiveExplorer.Selection.Item" Outlook VBA and Custom Forms 2
C Copy Move item won't work Outlook VBA and Custom Forms 2
T Pictures degrade each time an Outlook item is edited and re-saved Using Outlook 1
B Change row background color of selected item Using Outlook 1
P Outlook 2013 "Item could not be moved - still an issue for Outlook 2013 Using Outlook 0
R Error when trying to forward current email item Outlook VBA and Custom Forms 7
geoffnoakes Find Contacts with UDFs "in this item" Using Outlook 1
T "cannot find the calendar folder for this item" - calendar items stuck in outbox Using Outlook 0
GregS Many Sent Item folders Using Outlook 3
B Select / activate first email item in the searched query Using Outlook 1
4 Macro to set the category of Deleted Item? Outlook VBA and Custom Forms 2
N "Discussion" item Using Outlook 3
T outlook.com opens with "item not found" Using Outlook 1
Peter H Williams How to Move Mail item after processing Outlook VBA and Custom Forms 5
C Change default "Save Sent Item To" folder Outlook VBA and Custom Forms 9
M Shortcut to another outlook item Using Outlook 0
M Item edits doesn't always sync Using Outlook 11
Cdub27 Your changes to this item couldn't be saved because Server Denied Operation (HTTP 403 Forbidden) Using Outlook 1
M VBA to change flag status in outlook contact item Outlook VBA and Custom Forms 3

Similar threads

Top