#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default hyperlinks

hi all
what is the code for hyperlinking to a webpage from vba, i know you can
insert a hyperlink ontp a worksheet but can you do it via code
regards
johny5

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default hyperlinks

Here is an example

With Worksheets("Sheet3")
.Hyperlinks.Add Anchor:=.Range("A1"), _
TextToDisplay:="xlDynamic", _
Address:="http://www.xldynamic.com/"
End With


--

HTH

RP
(remove nothere from the email address if mailing direct)


wrote in message
oups.com...
hi all
what is the code for hyperlinking to a webpage from vba, i know you can
insert a hyperlink ontp a worksheet but can you do it via code
regards
johny5



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default hyperlinks

Bob has shown you how to add a hyperlink. If you want to execute a
hyperlink without having it physically exist, look at the followhyperlink
method of the workbook object (not the followhyperlink event).

--
Regards,
Tom Ogilvy

wrote in message
oups.com...
hi all
what is the code for hyperlinking to a webpage from vba, i know you can
insert a hyperlink ontp a worksheet but can you do it via code
regards
johny5



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
Hyperlinks: Hyperlinks change on copy/paste? Rick S. Excel Worksheet Functions 0 November 13th 07 08:19 PM
Update 2000 Excel hyperlinks to 2003 hyperlinks lonv155 Excel Worksheet Functions 4 October 25th 07 05:51 AM
How toi turn-off hyperlinks [excel]? Email hyperlinks pop up ! jacob735 Excel Discussion (Misc queries) 1 June 22nd 07 12:57 AM
Excel Hyperlinks- cell content v. hyperlinks herpetafauna Excel Discussion (Misc queries) 2 May 23rd 06 04:39 AM
Hyperlinks ArmandoS Excel Discussion (Misc queries) 0 March 20th 05 01:59 AM


All times are GMT +1. The time now is 06:28 PM.

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

About Us

"It's about Microsoft Excel"