Sub OrderFields() Dim ET As ETGW_Core Dim pMxDoc As IMxDocument Dim pMap As IMap Dim pFeatureLayer As IFeatureLayer Dim pInFeatureClass As IFeatureClass Dim pOutFeatureClass As IFeatureClass Dim sMessage As String Set pMxDoc = ThisDocument Set pMap = pMxDoc.FocusMap Set pFeatureLayer = pMxDoc.SelectedLayer Set pInFeatureClass = pFeatureLayer.FeatureClass '======================================================================= Set ET = New ETGW_Core Dim sOutFileName As String Dim fieldDictionary As Object Set fieldDictionary = CreateObject("Scripting.Dictionary") fieldDictionary.Add "STATE_NAME", 1 fieldDictionary.Add "POP1990", 1 fieldDictionary.Add "STATE_FIPS", 1 sOutFileName = "c:\00\test_pgdb.mdb\ordered" Set pOutFeatureClass = ET.OrderFields(pInFeatureClass, sOutFileName, _ fieldDictionary, sMessage) '======================================================================== If Not pOutFeatureClass Is Nothing Then Set pFeatureLayer = New FeatureLayer Set pFeatureLayer.FeatureClass = pOutFeatureClass pFeatureLayer.Name = pOutFeatureClass.AliasName pMap.AddLayer pFeatureLayer Else MsgBox sMessage End If End Sub