Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6604243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:07:42+00:00 2026-05-25T19:07:42+00:00

I am trying in my application to launch Microsoft Excel with specific arguments (ie.

  • 0

I am trying in my application to launch Microsoft Excel with specific arguments (ie. additional xla & xll).

For now it works fine because all of my users only have Office11 (=2003) installed.

My company is going to switch to Windows 7 & Office 2010 and I logically can’t launch any excel since the .exe is not located in C:\Program Files:\Microsoft Office\Office11\EXCEL.EXE

I ran a quick check in the registry to see that I can definitely check what version is currently installed. There are also plenty of articles explaining how to get the currently installed Office version.

However, I’d like to know if it is possible to find anything (such as a good registry key) directly giving me the .exe path so as to launch Excel.

Using my current machine (Win XP x86, Office11), I can find it in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\11.0\Excel\InstallRoot

Using this key I can, basically, find a workaround to get the actual path. Problem: there is no such key in Windows 7’s registry with Office 2010 (= Office 14) installed.

Do you guys know any way to launch the currently installed excel from C#?

FYI, here is the current code section, launching Office11 from a x64 / x86 machine:

    private void LaunchExcel(string arguments)
    {
        if (!Is64BitsOS())
        {
            Process process = new Process();
            process.StartInfo.FileName = "excel";
            process.StartInfo.Arguments = arguments;
            process.Start();
        }
        else
        {
            Process process = new Process();
            process.StartInfo.FileName = "c:/Program Files (x86)/Microsoft Office/Office11/excel.exe";
            process.StartInfo.UseShellExecute = false;

            process.StartInfo.Arguments = arguments;
            process.Start();
        }
    }

Any ideas to make this code more generic?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T19:07:42+00:00Added an answer on May 25, 2026 at 7:07 pm

    The 32 bit version of Excel 2010 running on a 64 bit version of Windows (XPx64,Vistax64,Win7x64) will have the following key.
    I think this is the key you are looking for
    HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Excel\InstallRoot

    The 64 bit version of Excel 2010 running on a 64 bit version of Windows (XPx64,Vistax64,Win7x64) will have the following key

    HKLM\SOFTWARE\Microsoft\Office\14.0\Excel\InstallRoot

    copied from here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to launch another application from C# application, is there a way to
Here's the situation: I am trying to launch an application, but the location of
I'm trying to launch my ClickOnce application using C# code with HttpWebRequest class. The
I've been trying to use Java's ProcessBuilder to launch an application in Linux that
Very odd situation here. I'm trying to launch a .application file using Response.Redirect. In
I am trying to launch a ClickOnce application via a link on a web
I'm trying to use CreateProcess to launch a powershell script from within my application.
I'm trying to launch VB application from Java, but I'm getting runtime error: Exception
When I am trying to launch external application on the asp.net server, I see
I’m trying to launch an application (Operating System, My Application and the application I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.