Attribute VB_UserMemId = 0

H

holsingj

I have in a Class that holds a reference to the Office ribbon with
this property. I think it is set a the default member of the Class by
using the VB_UserMemId attribute.
However, during the Load event I can't set this property in the
instance of my Class with the code 'Set myRibbonClass = robjRibbon'
within the Onload callback procedure. How come VBA doesn't accept this
syntax?

Public Property Get Ribbon() As Office.IRibbonUI
Attribute Ribbon.VB_UserMemId = 0
Attribute Ribbon.VB_Description = "Get/Set the reference to the Office
UI Ribbon."
Set Ribbon = m_Ribbon
End Property
Public Property Set Ribbon(object as Office.IRibbonUI)
Set m_Ribbon = object
End Property

Any info would be appreciated.
Thx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top