Monday, August 28, 2006

Asking for a default ribbon.

A post of interest to developers can be found at my "other" Office 2007 blog here: http://microsoftoffice2007.blogspot.com/

With an image of my screen here: http://www.chrisgreaves.com/Office2007User/MondayAugust282006.html

2 Comments:

At 12:35 AM, Blogger Private Employee said...

Hi All,

How can I add my custom icon to the office ribbon command button with VB 6.0 code?

We've tried lot of methods to achieve the same. but we are unable to see our icon on the button

Your prompt reply would be appreciated to proceed further. Looking for your reply.


Regards
Ashok

 
At 3:35 AM, Blogger Under The Hood said...

Dim cb As CommandBar
For Each cb In CommandBars
If cb.Visible Then
cb.Protection = (cb.Protection And &H3)
Else
End If
Next cb


The snippet above functioned correctly in my Beta 2 back in July2006.

 

Post a Comment

<< Home