we released a small patch for excel tool bar. this patch will help you to isolate a namespace. meant for addin development.
Public Property Get ButtonParent() As Variant - ButtonParent = Array(Me.CodeName) + ButtonParent = Array(ThisWorkbook.VBProject.Name & "." & Me.CodeName) End Property
2 comments:
we released a small patch for excel tool bar. this patch will help you to isolate a namespace. meant for addin development.
Public Property Get ButtonParent() As Variant
- ButtonParent = Array(Me.CodeName)
+ ButtonParent = Array(ThisWorkbook.VBProject.Name & "." & Me.CodeName)
End Property
we patch again.
trust to access the project name requires explicit setting, so avoid using VBProject.Name.
+Friend Function VBProjectName() As String
+ ' VBProject.Name can't be accessed for the default settings.
+ VBProjectName = "VBAProject"
+End Function
Public Property Get ButtonParent() As Variant
- ButtonParent = Array(ThisWorkbook.VBProject.Name & "." & Me.CodeName)
+ ButtonParent = Array(VBProjectName & "." & Me.CodeName)
End Property
Post a Comment