thanks baxatob
 
I have tried Exists but as its a (Null Object) it will throw an error
 
This is the code I am using to locate the correct column header name within a datagrid, however some column headers are blank, therefore it throws an error. This is a silverlight grid, so its a bit complex just to get column names.
 
  set objColumnPresenter = objTable.SlObject("ColumnHeadersPresenter")
  intColumnCount = objColumnPresenter.ChildCount
  ReDim arrColumns(intColumnCount - 1)
  For x = 0 to UBound(arrColumns)
    set objColumnChild = objTable.Columns.Item(x)
    set objHeader = objColumnChild.Header
    If objHeader.Exists Then '///PROBLEM OCCURS WHEN HEADER BLANK
      arrColumns(x) = objColumnChild.Header
      If strSearchCol = objColumnChild.Header Then
        intColumn = x
      End if
    End if
  Next