I use the Excel web query feature extensively within Excel 2000 programs.
That feature works fine when I can go directly to the Web page; but there are instances where I must:
1. go to the portal home page
2. identify myself with an ID and password
3. then navigate through several web pages until I reach the appropriate page that has the data I need
Is it possible to do the above three functions all programically without any user intervention?
Basically I currently accomplish the above as follows:
1. issue a followURL, with an address of the home page
2. issue a msgbox which suspends the Excel program
3. paste the clipboard
When issuing the followURL, control passes to the web browser. Then the user does the following:
1. keys in the ID and password
2. navigates to the proper web page
3. does a right click
4. left click select all
5. another right click
6. left click copy
7. click the Excel program on the task bar, which returns control to the Excel program
When returning to the Excel program, the clipboard contains the information of the appropriate web page. Then the clipboard can be pasted to a sheet, which then emulates a Web QUERY.
The above works, but it?s not neat and clean, and error prone.
My inclination tells me it?s not trivial what I?m asking for. I believe basically I need some direction of where to obtain documentation such that I can educate myself in this area. Any general snippet of code that might lead me in a direction of investigation might be helpful.
It seems to me the only way possible to accomplish the above, is something as follows:
1. obtain a copy of the HTML program,. which is no problem
2. learn it?s internals I?m not proficient in HTML, but I can get there.
3. emulate the actions the user would do.
It?s step 3 that I have no idea how to do.
Thanks for any help.
Stephen L. Showler