call excel macro in java or ASP

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi rekha,
Wht don't you use VBS??

Pls paste the code below in the Notepad and save as Test.vbs. Give it a try! FYI, you can use these kind of VBS code in HTML. ;)

Code:
Dim objXL
Set objXL = CreateObject("Excel.Application")
With objXL
    .Workbooks.Open ("http://www.interq.or.jp/sun/puremis/colo/data/Book1.xls")
    .Application.Run "Test"
    .Application.Quit
End With
Set objXL = Nothing
 
Upvote 0
Hi
I have tried running the code u have sent me .but it gives me a message network not found.
 
Upvote 0
Hi rekha,

I'm going to venture a guess that you need to replace:
Code:
"http://www.interq.or.jp/sun/puremis/colo/data/Book1.xls"
with a reference to a file on your computer, not Colo's ;)

HTH,
 
Upvote 0
yaa I tried by replacing the code with reference to my file.when i run the file it gives me the error as Network not found
 
Upvote 0
Firstly,

You do not need to change anything like I suggested above, Colo's code works fine on Windows 2000 with IE 6.0.2800.1106

The idea is, use VB script in a similar manner as VBA, but you need to include the script tag.

This example:
Code:
<script language="VBScript">
Sub entrance_onClick
MsgBox ("We have moved, you will be moved to www.TheIllumni.com!")
window.location="http://www.TheIllumni.com"
End Sub
</script>

<form>
<input type="button" name="entrance" value="Click me!">
</form>

Can be seen here:
http://www.theillumni.com/posts/vbs.htm

HTH,
 
Upvote 0
One problem might be Netscape (I noticed I got a Netscape hit from this page). I don't believe Netscape supports VBScript. They want java.
 
Upvote 0
You put it right in your HTML.

Click on the link above (hopefully you have Internet Explorer).

Then when the page opens, select view|source, and you'll see where I put my VBScript.

HTH,
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top