Right the shell thing is pretty straightforward now I have a more trick problem....how to open up excel.
I am using the following code
-----------------------------------------------
Sub GetExcel()
Dim MyXL As Object
Dim ExcelWasNotRunning As Boolean
Set MyXL = GetObject(, "Excel.Application"

If Err.Number <> 0 Then ExcelWasNotRunning = True
Err.Clear ' Clear Err object in case error occurred.
DetectExcel
Set MyXL = GetObject("" & frmMain.Text1(2).Text & ""
MyXL.Application.Visible = True
MyXL.Parent.Windows(1).Visible = True
If ExcelWasNotRunning = True Then
MyXL.Application.Quit
End If
Set MyXL = Nothing
End Sub
Sub DetectExcel()
Const WM_USER = 1024
Dim hWnd As Long
hWnd = FindWindow("XLMAIN", 0)
If hWnd = 0 Then ' 0 means Excel not running.
Exit Sub
Else
SendMessage hWnd, WM_USER + 18, 0, 0
End If
End Sub
--------------------------------------------------
The problem is that it only opens up excel and shows you the sheet it wont let me edit any cells - how can I change this so I can???? (If I replace excel with word and open a word document its fine?)
Any help would be great, thanks
Simon