Greetings:
I'm looking for some help in automating (what I thought would be) a simple procedure in Internet Explorer. I'm trying to put the following operation under a button click in an MS Access database form:
1. Navigate to URL and click button
2. Enter user name and password
3. Apply filters (enter criteria in text boxes)
4. Execute query (another button click)
5. Export results to network server
6. Data mining using Monarch software
7. Export to Access
8. Run Attachmate macro to input data to mainframe system
I am not a legitimate programmer, but have had some success in picking up vb(a) over the years just by using the help topics in the vb editor in MS Access modules. Remarkably, I've figured out items 1, 6, 7, and 8 myself. I think if I could just get some help with code that would enumerate the names or tags or ids of the elements on the web page, I could finish 2 - 5.
Can anyone provide vb code using the Microsoft Internet Explorer references library, and/or the Microsoft HTML references library that would show me a list of the elements on a web document? An example of how to use getElementbyId or TagName (or your own better idea) to perform subsequent text and click operations would also be handy.
Much obliged! This code is going to save hours and hours of repetetive data manipulation every week for an office of about 200 people.
4 3183
Moved your thread to the access forum
nico5038 3,080
Recognized Expert Specialist
I've used in the past the code from:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?tx tCodeId=58524&l ngWId=1
This will get the selected text and thus save the copy/paste for the user.
The HTMLDocument will allow the manipulation of the fields, but I've not experimented with that yet...
Nic;o)
Denburt 1,356
Recognized Expert Top Contributor
If I were you I would do my best to try a more direct approach, If this is on your companies intranet find out the type of database, location etc. and get the data that way. If it is on the internet maybe you could contact the company and get them to set up an XML file.
If you really want to or have the need to root through the webpage remember any names or ID they are using today might change tomorrow. This said I have a ton of code used to interface with WebPages, from a previous project, however it is at home at the moment. I will gladly dig it up when I get there but I may be able to get you started, if I am not mistaken it would be something to the effect of: - Set myPage = Application.FollowHyperlink(Address, SubAddress, NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)
From there you should be able to refer to the elements on the page using the object myPage.
Hope this helps!
Thanks to all, and sorry I've been incommunicado. I tried the above listed tips, and quickly moved into territory that is beyond my skill scope. So, I figured out that the web app is actually calling some other software that is also available to me through my company and will attempt to engineer the whole procedure by executing the software directly, instead of through the intranet site.
I appreciate the time taken to reply to me, and hope that it wasn't too much!
Many thanks!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: SunshineGirl |
last post by:
I'm trying to receive events from a running instance of Internet Explorer.
So far I've only been able to receive events from an instance I launch from
code, but I need to receive events from all running instances of Internet
Explorer (I mean those that the user launches himself).
I know this is possible because I did it three months ago....
|
by: Mark |
last post by:
Hi all,
Im written a small javascript program. Once it finishs I want to close
the internet explorer page. I have used window.close(); when this runs
it pops up with a Internet Explorer Dialog box, saying if I want to
close this page.
Is there a way to automate this process?? I also have the problem with
var fso = new...
|
by: tinkerman |
last post by:
Hello net friends,
I need to automate Internet Explorer in a very simple way.
I need to:
1. press refresh (F5) on the currently loaded website.
2. press END button.
3. Click a button somewhere on the screen with the mouse left button
(I'm not sure this button can be pressed directly via keysequence, not
via mouse, but it does have a...
|
by: Jax |
last post by:
I am interested in finding out if it is possible with C# to manipulate IE to go to certain websites and act as a user
I basically have a process I wish to automate but this process requires the users to input information which we already have, which I feel is inefficient, how can I code Internet explorer to analyse the HTML, enter the correct...
|
by: milk-jam |
last post by:
I'm trying to write a log which save each time internet explorer is opened
or closed
and all of the url which where visited?
Any help is greatly appreciated.
| |
by: ewhite2142 |
last post by:
I am writing code in VB.Net to access data from the Internet. If I write
the following code, I get access to a new instance of Internet Explorer:
Imports SHDocVw
Dim Br as New InternetExplorer
Br.Navigate(http://www.URL.com)
However, I want to access the instance of Internet Explorer already running,
not create a new instance. I tried...
|
by: chris_j_adams |
last post by:
Hi,
I'm trying to use Excel VBA ('97) to send details from an Excel sheet
to a web page. I'm having some success but I've one issue that's
proved difficult to find in the archives.
There are a number of elements (ie. text boxes) on this web page that
are conditionally "greyed out". They should become visible (ie. not
greyed) when a...
|
by: Matthew Lock |
last post by:
Hello,
I am automating Internet Explorer in order to do some simple automated
testing of a web application. How do I invoke Javascript functions in
the web page I load?
I can successfully start an instance of Internet Explorer and control
the DOM, but I don't know how to call Javascript functions. Here is
the code I am using so far:
...
|
by: Prisoner at War |
last post by:
Hi, All:
I have a JavaScript search engine that always causes MSIE 7 to do a
top-of-page security "warning" (that top-of-page-bar, and not an
"alert" )...but other websites' JavaScripts do not trigger
that...what's going on? When I visit other JavaScript sites there's
no warning and the scripts work fine, but mine (it's still under...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |