试试改为
For Each l_Col In Cols
  if not(l_col is nothing) then
    If l_Col.Name="DD" Then 
      Set Curcol=l_Col
    End If
  endif 
Next l_Col