T
tighe
i am trying to invalidate a ribbon button on the close of a form because
depending on the client you enter the button can or cannot be available.
using the information from
:http://msdn.microsoft.com/en-us/library/dd548011.aspx, i ended up with:
Public gobjRibbon As IRibbonUI
Public Sub OnRibbonLoad(objRibbon As IRibbonUI)
Set gobjRibbon = objRibbon
End Sub
Public Function InvalidateFirmControls()
With gobjRibbon
.InvalidateControl "cmdNMA" 'Object variable not set (Error 91)
End With
End Function
i tried calling this from unload event but no change in error. Any
suggestions on how to change the process or correct?
depending on the client you enter the button can or cannot be available.
using the information from
:http://msdn.microsoft.com/en-us/library/dd548011.aspx, i ended up with:
Public gobjRibbon As IRibbonUI
Public Sub OnRibbonLoad(objRibbon As IRibbonUI)
Set gobjRibbon = objRibbon
End Sub
Public Function InvalidateFirmControls()
With gobjRibbon
.InvalidateControl "cmdNMA" 'Object variable not set (Error 91)
End With
End Function
i tried calling this from unload event but no change in error. Any
suggestions on how to change the process or correct?