Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DW DW is offline
external usenet poster
 
Posts: 11
Default Need hyperlink function to obtain range name from a cell (contents

Hi:
I want to set up a hyperlink to a named range. I have to set up about 2000
hyperlinks and I need to have the hyperlink obtain the range name from a cell
in the same worksheet. For example I will have range names entered into
cells B1:B5. I want to set up hyperlinks in cells C1:C5 that go to column B,
in the same row, pick up the range name and then send the user to the range
based on that name.

I would be grateful for any help I can obtain.

Thanks
DW
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Need hyperlink function to obtain range name from a cell (contents

With your posted example

Try this:

B1: (a range name....eg MyRange1)
B2: (a range name....eg MyRange2)
etc

C1: =HYPERLINK("#"&B1,"Go to: "&B1)
Copy C2 down through C5

Is that something you can work with?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"DW" wrote in message
...
Hi:
I want to set up a hyperlink to a named range. I have to set up about
2000
hyperlinks and I need to have the hyperlink obtain the range name from a
cell
in the same worksheet. For example I will have range names entered into
cells B1:B5. I want to set up hyperlinks in cells C1:C5 that go to column
B,
in the same row, pick up the range name and then send the user to the
range
based on that name.

I would be grateful for any help I can obtain.

Thanks
DW



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Need hyperlink function to obtain range name from a cell (contents

This macro will set up hyperlinks from C1 thru C5 as per your example:

Sub hyperset()
Set r = Range("B1:B5")
For Each rr In r
ActiveSheet.Hyperlinks.Add Anchor:=rr.Offset(0, 1), Address:="", _
SubAddress:=rr.Value, TextToDisplay:=rr.Value
Next
End Sub
--
Gary''s Student - gsnu200765


"DW" wrote:

Hi:
I want to set up a hyperlink to a named range. I have to set up about 2000
hyperlinks and I need to have the hyperlink obtain the range name from a cell
in the same worksheet. For example I will have range names entered into
cells B1:B5. I want to set up hyperlinks in cells C1:C5 that go to column B,
in the same row, pick up the range name and then send the user to the range
based on that name.

I would be grateful for any help I can obtain.

Thanks
DW

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DW DW is offline
external usenet poster
 
Posts: 11
Default Thanks Ron and Gary's Student


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
DW DW is offline
external usenet poster
 
Posts: 11
Default Need hyperlink function to obtain range name from a cell (contents

Thanks to you both.

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
Hyperlink to Named Range Based On Cell Contents TKS_Mark Excel Worksheet Functions 1 January 9th 08 04:14 PM
Syntax to obtain the SubAddress of a Hyperlink in A1 on Sheet1 EagleOne Excel Discussion (Misc queries) 0 December 7th 06 02:20 AM
hyperlink using cell contents [email protected] Excel Worksheet Functions 2 April 15th 06 10:46 PM
How do I obtain the address of a cell using the vlookup function? Spock Excel Worksheet Functions 2 May 16th 05 06:35 PM
How can I shift cell range contents by using a function? spydog27 Excel Worksheet Functions 1 December 23rd 04 08:40 AM


All times are GMT +1. The time now is 11:49 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"