I am trying to get information on programmatically changing the Quick Access Toolbar in MS Office 2007 through Visual Basic 2005. I need to write a macro that will add an icon for a macro to the Quick Access Toolbar when a specific file gets the focus and remove the icon when that specific file looses the focus. Can anyone point me in the right direction?
Any help will be greatly appreciated.