Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Launching a website from Excel

Hi,

At the end of every month I've written code that will
remind the user to update his version of my add-in from my
website www.mastertool.co.uk

It would also be nice to give the option of pressing a
button and launching internet explorer and the website...

I can do this by creating a hyperlink and simply recording
the action of selecting it...but there has to be a better
way.

Thks as always, I couldn't have created the add-in without
help from people on this site

Chris


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Launching a website from Excel

Chris,

Try something like

ThisWorkbook.FollowHyperlink Address:="http://www.cpearson.com"


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Chris Gorham" wrote in
message ...
Hi,

At the end of every month I've written code that will
remind the user to update his version of my add-in from my
website www.mastertool.co.uk

It would also be nice to give the option of pressing a
button and launching internet explorer and the website...

I can do this by creating a hyperlink and simply recording
the action of selecting it...but there has to be a better
way.

Thks as always, I couldn't have created the add-in without
help from people on this site

Chris




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Launching a website from Excel

Yes you can use the shell API

Private Declare Function ShellExecute _
Lib "shell32.dll" _
Alias "ShellExecuteA" ( _
ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) _
As Long
Sub OpenWebSite()
Dim r As Long
r = ShellExecute(0, "open", "http://www.kjtfs.com", 0, 0, 1)
End Sub



Keith
www.kjtfs.co

--
Message posted from http://www.ExcelForum.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Launching Excel RichD Setting up and Configuration of Excel 2 December 20th 07 02:29 AM
Launching Excel TelAb Excel Discussion (Misc queries) 2 June 9th 07 07:35 PM
Excel and launching userforms Lumpjaw New Users to Excel 6 August 21st 06 01:39 AM
Launching Excel wllee Excel Discussion (Misc queries) 4 August 31st 05 01:05 AM
Launching Excel mercury Excel Programming 0 November 19th 03 02:24 PM


All times are GMT +1. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"