你好像不见了
   
    .
   
   从
   
    Columns(count).Insert shift:=xlToRight
   
   。您还可以删除冗余项
   
    With
   
   使其更具可读性的语句:
  
  Sub ArrangeCoreColumns()
    Dim ColOrder As Variant, idx As Integer
    Dim Fnd As Range, count As Integer
    Dim ws As Worksheet
    
    ColOrder = Array("route", "vrId", "carrier", "trailerNumber", "scheduledDepartureTime", "trailerId", "sealId", "label")
    count = 1
    Set ws = Sheet8
    
    Application.ScreenUpdating = False
    
    With ws
        For idx = LBound(ColOrder) To UBound(ColOrder)
            Set Fnd = .Rows("1:1").Find(ColOrder(idx), LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False)
            If Not Fnd Is Nothing Then
                If Fnd.Column <> count Then
                    Fnd.EntireColumn.Cut
                    .Columns(count).Insert shift:=xlToRight
                    Application.CutCopyMode = False
                End If
                count = count + 1
            End If
        Next idx
        
        .Range("A1").Value = "Lane"
        .Range("B1").Value = "VRID"
        .Range("C1").Value = "Carrier"
        .Columns("D:D").Insert shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove
        .Range("D1").Value = "Trailer #"
        .Range("F1").Value = "SDT"
        .Range("G1").Value = "Trailer ID"
        .Range("H1").Value = "Seal #"
        .Range("I1").Value = "Dock Door"
        
        .Range("D2").Formula = "=IFERROR(REPLACE(E2,1,FIND(""AZNG "",E2)+4,),"""")"
        .Range("D2").Copy Destination:=.Range("D3:D500")
        .Range("A:I").Columns.AutoFit
    End With
    
    Application.ScreenUpdating = True
    
    Call TM_Formulas
End Sub