Does anyone know how to determine if a web page is loaded via MS Access VBA?
If so, is it easy enough to determine if a button can be pushed and further select the 2nd of the 2 options it presents?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Determining whether Google Chrome webpage is loaded
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Determining whether Google Chrome webpage is loaded
- This topic has 11 replies, 3 voices, and was last updated 11 years, 11 months ago.
AuthorTopicViewing 4 reply threadsAuthorReplies-
WSjeremybarker
AskWoody LoungerJuly 3, 2013 at 2:22 am #1399614Does anyone know how to determine if a web page is loaded via MS Access VBA?
If so, is it easy enough to determine if a button can be pushed and further select the 2nd of the 2 options it presents?You can certainly add a Web Browser control to a form, Navigate to a particular url and test to see whether the the navigation has completed. I have to go out for a while, but if no one else replies I’ll see if I can dig out some code later!
Not sure about testing whether a button “can be pushed” – do you mean finding whether there is a clickable button on the page, or a drop-down list, or something else?
-
WSruirib
AskWoody LoungerJuly 3, 2013 at 5:11 am #1399627Do you have control over the web page? I ask because the way to determine whether an option was chosen in a web page involves Javascript. Probably the best way would be to add javascript to start an ajax action that would result in a change of a database value, and you could check that change from Access…
-
WSjeremybarker
AskWoody LoungerJuly 3, 2013 at 2:33 pm #1399689In Access 2010, if I add a Web Browser control to a blank form and leave it with its default name of WebBrowser1, then the following code demonstrates simple page navigation using this control (note: I didn’t have to add any references to the project for this code to compile and run OK):
Code:WebBrowser1.Navigate "www.google.com" Do Until WebBrowser1.ReadyState = READYSTATE_COMPLETE DoEvents Loop
In a “real” app you would want some way of dropping out of the Do loop – perhaps if a preset time interval had been exceeded.
-
WSpatt
AskWoody LoungerJuly 3, 2013 at 2:58 pm #1399693What I want to do is (via VBA) to go to a particular URL (one of a number of URLs), then click a button on that page (this is literally a drop down box) and click a 2nd option it drops down.
I don’t need to test for a particular URL as I can fire them using Application.FollowHyperlink, although it would be nice to test if a particular URL was loaded. -
WSjeremybarker
AskWoody LoungerJuly 4, 2013 at 2:34 am #1399731What I want to do is (via VBA) to go to a particular URL (one of a number of URLs), then click a button on that page (this is literally a drop down box) and click a 2nd option it drops down.
I don’t need to test for a particular URL as I can fire them using Application.FollowHyperlink, although it would be nice to test if a particular URL was loaded.Can you provide a link to one of the URLs in question and an indication of which dropdown box / value is involved, or is this a private site you are accessing?
I don’t know if what you want to do is possible using VBA, but I’d like to have something to have a look at 🙂
-
WSpatt
AskWoody Lounger -
WSjeremybarker
AskWoody LoungerJuly 4, 2013 at 1:28 pm #1399803I have included a jpg of part of the screen, it is a screen where I trade forex so cannot give you the url for privacy.
The button is on the RHS labelled Export to Excel.I can’t see any jpg image I’m afraid. I’m out of ideas without a live website to practise on – perhaps someone with more web experience can help out 🙂
-
WSpatt
AskWoody LoungerJuly 4, 2013 at 6:05 pm #1399837Here is the url
http://www.zulutrade.com/trader/163315
it is no good because it won’t show the button if you are not signed in.
How do I add a jpg in here?
-
-
-
-
WSpatt
AskWoody Lounger-
WSjeremybarker
AskWoody LoungerJuly 5, 2013 at 10:44 am #1399921Can you put me onto any documentation that may give me clues on how to do this?
My own knowledge on this is fairly limited I’m afraid – I was hoping that it might be possible to identify the particular page element as you can with Javascript, and somehow manipulate that object to simulate a ‘click’ or ‘select’ action. The relevant body of knowledge is known as the Document Object Model (DOM) for HTML and is typically described in Javascript articles, although you can certainly get at the HTML document property of a web page from VBA using the WebBrowser control I suggested in my earlier post.
Good luck 🙂
WSpatt
AskWoody LoungerViewing 4 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Microsoft : Edge is better than Chrome
by
Alex5723
4 hours, 22 minutes ago -
The EU launched DNS4EU
by
Alex5723
4 hours, 31 minutes ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
2 hours, 37 minutes ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
9 hours, 58 minutes ago -
Set default size for pasted photo to word
by
Cyn
16 hours ago -
Dedoimedo tries 24H2…
by
Cybertooth
4 hours, 6 minutes ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
1 day, 14 hours ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
1 day, 12 hours ago -
Small desktops
by
Susan Bradley
5 hours, 38 minutes ago -
Totally disable Bitlocker
by
CWBillow
8 hours, 31 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
1 day, 12 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
2 days, 18 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
13 hours, 40 minutes ago -
Mystical Desktop
by
CWBillow
2 days, 22 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
2 days, 3 hours ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
19 hours, 28 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
3 days, 13 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
3 days, 16 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
3 days, 14 hours ago -
What is wrong with simple approach?
by
WSSpoke36
1 day, 12 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
4 days, 1 hour ago -
Location, location, location
by
Susan Bradley
2 days, 16 hours ago -
Cannot get a task to run a restore point
by
CWBillow
4 days, 3 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
3 days, 17 hours ago -
June 2025 Office non-Security Updates
by
PKCano
4 days, 13 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
2 hours, 46 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
4 days, 13 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
5 days ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
4 days, 2 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
5 days, 8 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.