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, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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, 9 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
-
FBI 2024 Internet Crime Report
by
Alex5723
14 minutes ago -
Perplexity CEO says its browser will track everything users do online
by
Alex5723
4 minutes ago -
Login issues with Windows Hello
by
CWBillow
11 hours, 19 minutes ago -
How to get into a manual setup screen in 2024 Outlook classic?
by
Tex265
13 hours, 32 minutes ago -
Linux : ARMO rootkit “Curing”
by
Alex5723
22 hours, 52 minutes ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
22 hours, 58 minutes ago -
Google AI is now hallucinating idioms
by
Alex5723
23 hours, 29 minutes ago -
april update
by
69800
1 hour, 41 minutes ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
1 day ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
1 day ago -
WuMgr not loading?
by
LHiggins
1 day, 1 hour ago -
Word crashes when accessing Help
by
CWBillow
4 hours, 41 minutes ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
1 day ago -
Blank Inetpub folder
by
Susan Bradley
21 hours, 39 minutes ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
1 day, 10 hours ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
21 hours, 12 minutes ago -
Wait command?
by
CWBillow
1 day, 4 hours ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
1 day, 17 hours ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
2 days ago -
Windows 10 finally gets fix
by
Susan Bradley
2 days, 8 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
2 days, 10 hours ago -
How to use Skype after May?
by
Joann
18 hours, 34 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
2 days, 4 hours ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
2 days, 23 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
3 days ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
4 hours, 14 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
1 day, 5 hours ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
3 days, 11 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
3 days, 15 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
3 days, 15 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.