Opening launching excel 2010 from VB 2010

What would be the proper code to launch an excel 2010 file from vb 2010?   I have the file name in a variable just not sure of the proper way to program the process.
DJ_ConsultingAsked:
Who is Participating?
 
CodeCruiserConnect With a Mentor Commented:
Use following line

System.Diagnostic.Process.Start(filenamevariable)
0
 
ingeticCommented:
Dim xlTmp As Excel.Application
 
  Set xlTmp = New Excel.Application
  xlTmp.Workbooks.Open "monexcel.xls"
0
 
DJ_ConsultingAuthor Commented:
Error	1	Type 'Excel.Application' is not defined.

Open in new window

     is what i'm getting I added the application under projects reference but still get the error.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.