Using Process.start to Open an XML file with Excel

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tbxml@yahoo.com

    #1

    Using Process.start to Open an XML file with Excel

    Hi
    I am trying to open an xml file the I have made from a dataset with
    excel. By using the process.start. My users think it is to hard to
    right click the xml file and open it with Excel that way, but .. So
    this is what I have :

    Dim myProcess As New Process
    myProcess.Start Info.FileName = "C:\Documen ts and Settings\" &
    myUser & "\Desktop\Sampl e.xml"
    Dim startInfo As New ProcessStartInf o("Excel.exe" )
    startInfo.FileN ame = "C:\Documen ts and Settings\" & myUser &
    "\Desktop\Sampl e.xml"

    myProcess.Start (startInfo)

    Any Help would be great thanks

    Tom

Working...