summaryrefslogtreecommitdiff
path: root/wizards/source/access2base/CommandBar.xba
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/source/access2base/CommandBar.xba')
-rw-r--r--wizards/source/access2base/CommandBar.xba7
1 files changed, 3 insertions, 4 deletions
diff --git a/wizards/source/access2base/CommandBar.xba b/wizards/source/access2base/CommandBar.xba
index 45a0ad513f1d..69e2e97efc74 100644
--- a/wizards/source/access2base/CommandBar.xba
+++ b/wizards/source/access2base/CommandBar.xba
@@ -84,9 +84,9 @@ Dim vProperty As Variant, vPropertiesList() As Variant, sObject As String
vPropertiesList = _PropertiesList()
sObject = Utils._PCase(_Type)
If IsMissing(pvIndex) Then
- vProperty = PropertiesGet._Properties(sObject, _Name, vPropertiesList)
+ vProperty = PropertiesGet._Properties(sObject, _This, vPropertiesList)
Else
- vProperty = PropertiesGet._Properties(sObject, _Name, vPropertiesList, pvIndex)
+ vProperty = PropertiesGet._Properties(sObject, _This, vPropertiesList, pvIndex)
vProperty._Value = _PropertyGet(vPropertiesList(pvIndex))
End If
@@ -174,8 +174,7 @@ Dim oObject As Object
Set oObject = New Collect
Set oObject._This = oObject
oObject._CollType = COLLCOMMANDBARCONTROLS
- oObject._ParentType = OBJCOMMANDBAR
- oObject._ParentName = _Name
+ Set oObject._Parent = _This
oObject._Count = iItemsCount
Case Else ' pvIndex is numeric
Goto Trace_IndexError