• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Open Multiple URL's within Cell Range of a Worksheet|VBA & Macros|Excel Forum|My Online Training Hub

You are here: Home / Open Multiple URL's within Cell Range of a Worksheet|VBA & Macros|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumVBA & MacrosOpen Multiple URL's within Cell Ran…
sp_PrintTopic sp_TopicIcon
Open Multiple URL's within Cell Range of a Worksheet
Avatar
Sacherla Punith

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
September 24, 2020
sp_UserOfflineSmall Offline
1
April 25, 2021 - 5:36 pm
sp_Permalink sp_Print

Hi Myanda Treacy,

Trust you are doing well !

My name is Punith & I am from Chennai, India. I am a new user to Excel VBA

My reason to use Excel VBA is that, I wanted to open multiple web page based on the date present in a  cell range of a sheet.

In the attachment (Cell _Range.png), I have list of URL's in cell range D11 to D17. I would like to open these URL's in a default browser using Excel VBA.

I have attached a sample VBA code which works for Static URL Address. Please let me know the work around if the URL are referenced in cell.

Regards,

PunithCell_Range.pngImage Enlarger

[Image Can Not Be Found]

sp_PlupAttachments Attachments
  • sp_PlupImage Cell_Range.png (137 KB)
Avatar
Graham Stent
Member
Members
Level 0
Forum Posts: 17
Member Since:
November 3, 2015
sp_UserOfflineSmall Offline
2
April 26, 2021 - 6:22 pm
sp_Permalink sp_Print

Hi Punith,

Try this:

Sub OpenMultipleURLs()

Dim vURL
Dim ie As InternetExplorer
Dim iCount As Integer

Set ie = CreateObject("InternetExplorer.application")
ie.Visible = True

Range("D11").Select
iCount = 1
While ActiveCell.Value <> ""
vURL = ActiveCell.Value
If iCount = 1 Then
ie.Navigate vURL
Else
ie.Navigate vURL, CLng(2048)
End If

iCount = iCount + 1
ActiveCell.Offset(1, 0).Select
Wend

Set ie = Nothing
End Sub

Regards

Graham

Avatar
Sacherla Punith

Active Member
Members
Level 0
Forum Posts: 5
Member Since:
September 24, 2020
sp_UserOfflineSmall Offline
3
April 27, 2021 - 2:20 am
sp_Permalink sp_Print

Hello Graham Stent,

Thank you for your reply.

When I first ran the above given code, I was facing a compilation error. I later understood, I need to check "Microsoft Internet Controls" in Tools -> References. With this change the code runs perfectly. Thank you very much for the time and effort Graham.

Regards,

Punith

 

image103.pngImage Enlarger

sp_PlupAttachments Attachments
  • sp_PlupImage image103.png (30 KB)
sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Genevieve Guex, Richard Benson-King
Guest(s) 8
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
wahab tunde
Cong Le Duc
Faisal Bashir
Ivica Cvetkovski
Blaine Cox
Shankar Srinivasan
riyepa fdgf
Hannah Cave
Len Matthews
Kristine Arthy
Forum Stats:
Groups: 3
Forums: 24
Topics: 6205
Posts: 27209

 

Member Stats:
Guest Posters: 49
Members: 31878
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.