Solved

How can I Access the internet from inside Excel vba code

Posted on 2011-02-21
5
244 Views
Last Modified: 2012-05-11
I'd like a button click on my spreadsheet to take the user to my website (www.mywebsite.com). How can I find out which browser the user has installed on his Windows computer and then what commands would I use to call that browser (Internet Explorer or Firefox) and link to my website?
0
Comment
Question by:wcpoa8
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 20

Expert Comment

by:darbid73
ID: 34949083
There is a lot of ways to do this with VBA and Internet Explorer, including having a mini webbrowser inside your excel.

Other wise the way you do it is

Application.FollowHyperlink strURL

Open in new window

0
 
LVL 20

Accepted Solution

by:
darbid73 earned 500 total points
ID: 34949087
If you want to read more about it see MSDN Excel 2003 Reference
0
 

Author Comment

by:wcpoa8
ID: 34949131
Does this work in Excel 2007 and 2010?
0
 

Author Comment

by:wcpoa8
ID: 34949146
It seems that it does work in Excel 2007 and 2010.
0
 

Author Closing Comment

by:wcpoa8
ID: 34949148
Thanks!
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question