Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default creating hyperlink from cell data


Hi everyone, if I had a URL e.g. http://www.google in column A and the
text Google in column B is there anyway of automatically making the
text in column B a hyperlink based on the URL in column A?

I'll be trying to do this with data from lots of rows and I'd be
grateful if you can show me where to start please.


--
Daminc
------------------------------------------------------------------------
Daminc's Profile: http://www.excelforum.com/member.php...o&userid=27074
View this thread: http://www.excelforum.com/showthread...hreadid=484839

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default creating hyperlink from cell data

Dim rng as Range, cell as Range
set rng = range(cells(1,2),cells(1,2).End(xldown))
for each cell in rng
ActiveSheet.Hyperlinks.Add Anchor:=cell, _
Address:=cell.offset(0,-1).Value, _
TextToDisplay:=cell.Value
Next

--
Regards,
Tom Ogilvy




"Daminc" wrote in
message ...

Hi everyone, if I had a URL e.g. http://www.google in column A and the
text Google in column B is there anyway of automatically making the
text in column B a hyperlink based on the URL in column A?

I'll be trying to do this with data from lots of rows and I'd be
grateful if you can show me where to start please.


--
Daminc
------------------------------------------------------------------------
Daminc's Profile:

http://www.excelforum.com/member.php...o&userid=27074
View this thread: http://www.excelforum.com/showthread...hreadid=484839



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default creating hyperlink from cell data


Thanks Tom, it works great.

I thought I had to count rows and all sorts. Perhaps even a vlookup o
so

It also gives me something new to look into because there's a number o
things in there that I've never seen before.

How long have you been doing this to become so well versed

--
Damin
-----------------------------------------------------------------------
Daminc's Profile: http://www.excelforum.com/member.php...fo&userid=2707
View this thread: http://www.excelforum.com/showthread.php?threadid=48483

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
Creating a HyperLink Robin Clay Excel Discussion (Misc queries) 1 July 7th 08 12:28 PM
Creating a hyperlink to a cell on a different sheet Bob Excel Worksheet Functions 1 December 21st 06 07:31 AM
INSERTING CELL DATA IN A HYPERLINK K Excel Worksheet Functions 1 November 28th 06 01:30 PM
Help with creating hyperlink via VBA FrigidDigit[_2_] Excel Programming 8 October 19th 05 06:14 PM
Creating a hyperlink in a excel cell programatically sameershenoy Excel Programming 0 May 12th 04 06:12 AM


All times are GMT +1. The time now is 11:15 AM.

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"