The following code works well in 2003 but command 1025 fails in 2007
Can anyone offer insight into the cause?
T.I.A.
Code: Select all
Private Sub Add_Macros()
1015 Application.OrganizerCopy _
Source:="C:\My Documents\tools\Compliance_Matrix_source.dot", _
Destination:=Target, _
Name:="RepairComplianceMatrix", _
Object:=wdOrganizerObjectProjectItems
1025 Application.OrganizerCopy _
Source:="C:\My Documents\tools\Compliance_Matrix_source.dot", _
Destination:=Target, _
Name:="Matrix Repair", _
Object:=wdOrganizerObjectCommandBars
End Sub