Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default hyperlink item#'s across worksheets

l'm looking for help on how to create a significant number of hyperlinks
(500+) that will go across worksheets. The hyperlink will be based upon an
item# in one worksheet and it will need to find it's matching item# on
another worksheet. The worksheets are oriented differently so it seems some
type of lookup would be needed. Any help would be very appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default hyperlink item#'s across worksheets

How about an alternative?

Use a macro that searches sheet2 column A and if it finds a match, it goes
there.

I'd drop a button from the forms toolbar in Row 1 of sheet1--and make row 1
always visible (window|freeze panes)

Then assign this macro to that button. (The code depends on where the
activecell is.)

Option Explicit
Sub testme01()
Dim myRng As Range
Dim myCell As Range
Dim res As Variant

With Worksheets("sheet2")
Set myRng = .Range("a:a")
End With

Set myCell = ActiveCell.EntireRow.Cells(1)

res = Application.Match(myCell.Value, myRng, 0)

If IsError(res) Then
Beep
Else
Application.Goto myRng(res), scroll:=True
End If

End Sub

Matt Hughes wrote:

l'm looking for help on how to create a significant number of hyperlinks
(500+) that will go across worksheets. The hyperlink will be based upon an
item# in one worksheet and it will need to find it's matching item# on
another worksheet. The worksheets are oriented differently so it seems some
type of lookup would be needed. Any help would be very appreciated.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default hyperlink item#'s across worksheets

Dave,

Excellent fix brother! Works fine.

"Dave Peterson" wrote:

How about an alternative?

Use a macro that searches sheet2 column A and if it finds a match, it goes
there.

I'd drop a button from the forms toolbar in Row 1 of sheet1--and make row 1
always visible (window|freeze panes)

Then assign this macro to that button. (The code depends on where the
activecell is.)

Option Explicit
Sub testme01()
Dim myRng As Range
Dim myCell As Range
Dim res As Variant

With Worksheets("sheet2")
Set myRng = .Range("a:a")
End With

Set myCell = ActiveCell.EntireRow.Cells(1)

res = Application.Match(myCell.Value, myRng, 0)

If IsError(res) Then
Beep
Else
Application.Goto myRng(res), scroll:=True
End If

End Sub

Matt Hughes wrote:

l'm looking for help on how to create a significant number of hyperlinks
(500+) that will go across worksheets. The hyperlink will be based upon an
item# in one worksheet and it will need to find it's matching item# on
another worksheet. The worksheets are oriented differently so it seems some
type of lookup would be needed. Any help would be very appreciated.


--

Dave Peterson

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
Linking item between two worksheets CD Excel Worksheet Functions 1 February 24th 10 02:06 PM
lookup problem with a table cell with hyperlink item Table lookup with HyperLinked item Excel Discussion (Misc queries) 2 May 29th 09 12:28 PM
Automating a line item for several worksheets? tpmax Excel Worksheet Functions 1 June 26th 07 03:56 AM
custom toolbar item to use hyperlink to open word file Sally M Excel Discussion (Misc queries) 2 April 26th 07 07:58 PM
Hyperlink menu item disabled Benish Excel Discussion (Misc queries) 5 November 23rd 06 01:50 PM


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