>I get no errors but nothing happens when I click the button.
I'm guessing that something does happen, but since you don't do anything that produces a noticeable effect, it seems like nothing is happening.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
This is probably not the ideal solution but maybe you could do...
Private Sub CallProcess(ByVal path As String)
Dim p As New System.Diagnostics.Process
p.StartInfo.FileName = path
p.StartInfo.WindowStyle = ProcessWindowStyle.Minimized
p.Start()
'Wait until the process passes back an exit code
p.WaitForExit()
'Free resources associated with this process
p.Close()
End Sub
CallProcess("C:\crap.xls")
Although the methods for excel files which you are already using are probably a better option.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439