In this code is the reference to Excel.Sheet.8 is that worksheet 8 or is it specifying a certain version? Any help would be apprciated. If there is a good resource for learning the different options and properties for the Excel class that would also be helpful.
If OLE1.Class = "Excel.Sheet.8" Then
Set Excelobj = OLE1.object.Worksheets("sheet1"
Else
Set Excelobj = OLE1.object
End If
If OLE1.Class = "Excel.Sheet.8" Then
Set Excelobj = OLE1.object.Worksheets("sheet1"
Else
Set Excelobj = OLE1.object
End If