Close One Tab within Chrome via VBA

0 votes

opening a Google Chrome tab with an already-filled Google Form link URL that syncs to a Google Sheet using Excel VBA.

The opened tab should ideally close after a second.

The different shortkeys I provide this application, however, dismiss every tab. Anyone have a tip for using VBA to close the last Chrome tab that was open?

''' ActiveWorkbook.FollowHyperlink myURL ''' Application.Wait Now + #12:00:01 AM#

Have Tried:

''' Application.SendKeys ("^W") ''' Application.SendKeys ("%{F4}")
Feb 10, 2023 in Others by Kithuzzz
• 38,010 points
1,577 views

1 answer to this question.

0 votes
Sod's law worked it out within a few mins of posting.

I hope this helps you.
answered Feb 10, 2023 by narikkadan
• 63,720 points

Related Questions In Others

0 votes
2 answers

How to get the URL of the current tab in Google Chrome?

Its so simple.... If you want to ...READ MORE

answered Aug 12, 2020 in Others by Steve
• 200 points
3,286 views
0 votes
2 answers

How to copy a formula horizontally within a table using Excel VBA?

Hi so basically, create an adjacent column ...READ MORE

answered Feb 16, 2022 in Others by Edureka
• 13,670 points
877 views
0 votes
1 answer

How should I show the Developer tab in Excel using Macros? (Excel VBA)

You can activate (mode=1) or deactivate (mode=0) ...READ MORE

answered Nov 15, 2022 in Others by narikkadan
• 63,720 points
504 views
0 votes
1 answer
+1 vote
1 answer

How to use VBA in Excel for Google Search?

Try this: Private Const LicenseRegistration As String = ...READ MORE

answered Oct 7, 2022 in Others by narikkadan
• 63,720 points
1,445 views
0 votes
1 answer

Retrieve epay.info Balance with VBA and Excel

This code should log you in, provided ...READ MORE

answered Sep 5, 2018 in Blockchain by digger
• 26,740 points
996 views
0 votes
1 answer

How to load file to Excel Power query from SFTP site

Currently, I don't think there is a ...READ MORE

answered Dec 3, 2018 in Power BI by Upasana
• 8,620 points
3,361 views
0 votes
1 answer

Using VBA Excel to create a gramatically correct list

The Excel AND function is a logical ...READ MORE

answered Feb 9, 2022 in Others by gaurav
• 23,260 points
667 views
0 votes
1 answer
0 votes
1 answer

Hosting Microsoft Edge via WebView2Loader.dll with Excel VBA

Here's an API to communicate with Chromium ...READ MORE

answered Sep 29, 2022 in Others by narikkadan
• 63,720 points
2,389 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP