500pnts!! - GetObject In Javascript

I have the following script in an aspx in a client script section.

<script language="javascript">
var oXlApp;

function getExcelInstance()
  { // this never works even if excel is running
    alert("Get Object Works!!");
    alert("Get Object Failed:- "+ex.message);
      oXlApp=new ActiveXObject("Excel.Application.11");
      alert("ActiveXObject Works!!");
      alert("ActiveXObject Failed:- " + ex.message);
  <input type="button" onclick="getExcelInstance();" value="clickMe" ID="Text1" NAME="Text1"/>

The GetObject never works even if there is a running instance which there is after the 1st time hitting the button. I get Automation Server Can't Create Object. The activeXObject then fires and I get an instance of excel for each button click.

I've got a really urgent deadline and this is my last bug!! Surely an easy 500pnts for someone out there!


This is really urgent as I've got
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


"Cannot Call GetObject from Script in IE to Access Running Object
Calling GetObject to get a running ActiveX object on a client system would be a large security risk because any running object on the system could be accessed without direct user permission, and is therefore not allowed by Internet Explorer. There is no way to change this behavior, either through code or manually by an end user.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GillyTheTaffyAuthor Commented:
that is the worst correct answer I have ever had - but thanks for confirming that for me
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.