In this post, we will see how to resolve Outlook Ribbon on Click Event not working
Question:
I have a simple Outlook Ribon button I am trying to create to forward a selected email to a set address. The probelm is when I click the button, it is not runing the code. I tried adding several break points and they never happen, even on the If statment below. Does anyone have any ideas?I have not worked with Visual Basic .NET in several years, and I feel like it must be something simple I am missing.
I tried break points in multible places. I looked at multble example sites to see if code was correct.
Best Answer:
You have two handlers in your code for theButton1.Click
event:Correct signature
It looks like you ended up with the double handlers because you were trying to get a reference to the current
Outlook.MailItem
using something similar to this:If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review