PC Review


Reply
Thread Tools Rate Thread

Add Hyperlink

 
 
Looping through
Guest
Posts: n/a
 
      2nd Jul 2008
I have a working book that contains a lot of job numbers on one sheet and
specific notes related to that job number on another sheet. I want to be able
to automatically add a hyperlink when you click on the job number to jump to
the specific notes on the secondary sheet.

The main job numers are listed in column B of workbork ("MAIN") and notes
are sorted by job number in column A of workbook ("Notes").

I hope there is something possible for this, when the users add notes to the
job they have to manually add a hyperlink. but if a note from another job is
added above the hyperlink cell references changes and thus creates issues in
remapping the hyperlink.

Let me know if you need more information.
Thanks
Peter
 
Reply With Quote
 
 
 
 
Tim Williams
Guest
Posts: n/a
 
      3rd Jul 2008
'This in the sheet code module
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)

Dim v, f
v = Target.Range.Value

Set f = ThisWorkbook.Sheets("Notes").Range("A:A").Find(v, , xlValues,
xlWhole)
If Not f Is Nothing Then
f.Parent.Activate
f.Select
End If

End Sub

As long as there's a valid hyperlink on the cell with the job# it should
take you to the matching note.
If there's no matching note it will follow the hyperlink.


"Looping through" <(E-Mail Removed)> wrote in
message newsC701738-7232-4E44-A1A3-(E-Mail Removed)...
>I have a working book that contains a lot of job numbers on one sheet and
> specific notes related to that job number on another sheet. I want to be
> able
> to automatically add a hyperlink when you click on the job number to jump
> to
> the specific notes on the secondary sheet.
>
> The main job numers are listed in column B of workbork ("MAIN") and notes
> are sorted by job number in column A of workbook ("Notes").
>
> I hope there is something possible for this, when the users add notes to
> the
> job they have to manually add a hyperlink. but if a note from another job
> is
> added above the hyperlink cell references changes and thus creates issues
> in
> remapping the hyperlink.
>
> Let me know if you need more information.
> Thanks
> Peter



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inserting a hyperlink to file creates DFS hyperlink instead of drive-letter link Brian Roden Microsoft Outlook Discussion 0 18th Sep 2006 08:32 PM
Converting Varchar Hyperlink address from SQL Server to real hyperlink in MS Access FA Microsoft Access Form Coding 3 25th Jan 2006 08:03 PM
Changing Data Type ftom hyperlink to text back to hyperlink Dkline Microsoft Access VBA Modules 0 22nd Dec 2004 06:07 PM
Moving Table of Contents turns entry into hyperlink. I don't need no stinking hyperlink Joe Williams Microsoft Word Document Management 3 19th Jun 2004 04:28 AM
reading html when hyperlink address not hyperlink text diplayed =?Utf-8?B?S2V2aW4=?= Microsoft Excel Programming 1 4th Dec 2003 10:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:47 PM.