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?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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 Lounger
Viewing 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
-
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
9 hours, 27 minutes ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
5 hours, 11 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
8 hours, 1 minute ago -
Discover the Best AI Tools for Everything
by
Alex5723
8 hours, 10 minutes ago -
Edge Seems To Be Gaining Weight
by
bbearren
8 hours, 53 minutes ago -
Rufus is available from the MSFT Store
by
PL1
6 hours, 21 minutes ago -
Microsoft : Ending USB-C® Port Confusion
by
Alex5723
1 day, 9 hours ago -
KB5061768 update for Intel vPro processor
by
drmark
15 hours, 37 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
11 hours, 48 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
1 day, 4 hours ago -
Office gets current release
by
Susan Bradley
1 day, 7 hours ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
2 days, 21 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
2 days, 6 hours ago -
Stop the OneDrive defaults
by
CWBillow
2 days, 22 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
3 days, 8 hours ago -
X Suspends Encrypted DMs
by
Alex5723
3 days, 10 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
3 days, 10 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
3 days, 11 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
3 days, 12 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
3 days ago -
Enabling Secureboot
by
ITguy
3 days, 7 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
3 days, 20 hours ago -
No more rounded corners??
by
CWBillow
3 days, 15 hours ago -
Android 15 and IPV6
by
Win7and10
3 days, 5 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
4 days, 8 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
4 days, 11 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
4 days, 5 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
4 days, 18 hours ago -
May preview updates
by
Susan Bradley
4 days, 5 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
3 days, 21 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
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.