i've just used the export to excel code (works great) and i've modified it to include the column and row headings

VB Code:
  1. Dim q As Long
  2. Dim p As Long
  3. Dim newCell As String
  4. Dim xl As Excel.Application
  5.  
  6. Set xl = CreateObject("excel.application")
  7.     xl.Workbooks.Open ("D:\University\3rd Year\Final Year Project\My Results\Book1")
  8.     DoEvents
  9.     xl.Visible = True
  10.  
  11. For p = 0 To MSFlexGrid1.Rows - 1
  12.     For q = 0 To MSFlexGrid1.Cols - 1
  13.         MSFlexGrid1.Col = q
  14.         MSFlexGrid1.Row = p
  15.         newCell = Chr(q + 65) & p + 1
  16.         xl.Worksheets("Sheet1").Range(newCell).Value = MSFlexGrid1.Text
  17.     Next
  18. Next