Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default how to write an adjustable hyperlink to named cells

im trying to write a series of hyperlinks to named cells in the same workbook
for example
hyperlink stk001 on sheet1 will link to the cell with text stk001 in sheet2
i need to do this for stk001 - stk 999 so id like to be able to copy it down
the spreadsheet and i want the hyperlinks to adjust if i add rows in to
sheet2 which is why i want them linked to a named cell
thank you for your time and assistance
barry
spokane, wa
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default how to write an adjustable hyperlink to named cells

You might like this better. Almost no overhead. Right click sheet tabview
codecopy/paste thismodify to suitSAVE workbook. Now type in the text to
goto on the other sheet and you will be taken there to the cell containing
the text you typed in cell d2 on the original sheet.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address < "$D$2" Then Exit Sub
On Error GoTo notthere
Application.Goto Sheets("sheet3").Columns("c").Find(Target, lookat:=xlWhole)
Exit Sub
notthe MsgBox "Not there"
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"BROCK8292" wrote in message
...
im trying to write a series of hyperlinks to named cells in the same
workbook
for example
hyperlink stk001 on sheet1 will link to the cell with text stk001 in
sheet2
i need to do this for stk001 - stk 999 so id like to be able to copy it
down
the spreadsheet and i want the hyperlinks to adjust if i add rows in to
sheet2 which is why i want them linked to a named cell
thank you for your time and assistance
barry
spokane, wa


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
how to write a macro that copies adjustable hyperlinks into a sprd BROCK8292 Excel Discussion (Misc queries) 3 September 21st 07 06:18 PM
Activate Hyperlink in Named Range David Excel Worksheet Functions 2 May 8th 07 12:04 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
automatically adjustable cells j Excel Discussion (Misc queries) 4 December 10th 05 08:25 AM
How to open a spreadsheet on a named sheet from a hyperlink? Paul Links and Linking in Excel 1 December 3rd 05 03:55 AM


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