A
Adri
I have a userform which has a combo-box which displays autotext entries. It
works fine, except the autotext entries are not sorted alphabetically...they
seem to be sorted in the order in which I created them. In Word 2000, they
automatically sorted alphabetically. Can anyone tell me how to get them to
sort alpha in 2007?
Thanks...
Following is the 2007 code I'm using.
Dim objDeptAddress As BuildingBlock
For i = 1 To
MyTemplate.BuildingBlockTypes(wdTypeAutoText).Categories("DeptAddress").BuildingBlocks.Count
Set objDeptAddress =
MyTemplate.BuildingBlockTypes(wdTypeAutoText).Categories("DeptAddress").BuildingBlocks(i)
FaxDlg.Address_ComboBox.AddItem objDeptAddress.Name
Next i
works fine, except the autotext entries are not sorted alphabetically...they
seem to be sorted in the order in which I created them. In Word 2000, they
automatically sorted alphabetically. Can anyone tell me how to get them to
sort alpha in 2007?
Thanks...
Following is the 2007 code I'm using.
Dim objDeptAddress As BuildingBlock
For i = 1 To
MyTemplate.BuildingBlockTypes(wdTypeAutoText).Categories("DeptAddress").BuildingBlocks.Count
Set objDeptAddress =
MyTemplate.BuildingBlockTypes(wdTypeAutoText).Categories("DeptAddress").BuildingBlocks(i)
FaxDlg.Address_ComboBox.AddItem objDeptAddress.Name
Next i