Can I run javascript from an Excel macro?

rde99

New Member
Joined
Nov 17, 2009
Messages
9
Environment: Windows XP Pro w/SP3 Excel 2000. Default browser: Firefox 3.0.7

I am able to open a web page with an Excel macro. From the macro I would like to click on a button on the web page. When I look at the source for the web page it looks like the function I want is embedded in javascript.

For an example of the data I'm interested in go to http://finance.yahoo.com/p?k=pf_1
Sign in: mistertester2
Password: M8R-hlylld
and click on "Download Spreadsheet"

(From Excel drop down menu I've tried Data/Get External Data/New Web Query in lieu of using a macro to download the spreadsheet. When I try to browse (any) web page I receive the "To use this feature, you must have a World Wide Web browser, such as Internet Explorer." I receive this error message even when I have an IE window open. If I could get this to work I believed it would be a better and simpler approach to downloading the stock market quotes I'm interested in.)

Any help will be greatly appreciated.

Bob
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

Forum statistics

Threads
1,223,237
Messages
6,170,928
Members
452,366
Latest member
TePunaBloke

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