Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Indirect Hyperlink from a graphic to a calculated cell or range

I need to make a hyperlink from a graphic to link indirectly to a cell or a
range of cells in the same worksheet.
The worksheet is alphabetized and I have created graphic buttons across the
top with the letters A to Z. The number of rows (1000+) changes frequently
and the A to Z tabs are used to index into the correct area of the
spreadsheet, which I have been manually updating.

I can calculate the starting address for each of the tabs, but I have yet to
find the proper combination of Hypertext, Cell, Indirect, &, €œ, €˜, # etc. to
jump from the 26 graphics labeled A to Z to the proper cells address which
are contained in K1 to K26.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Indirect Hyperlink from a graphic to a calculated cell or range

Ken,

Assign a macro that reads the text from the button and acts on the basis of
the return. For example, assign this to each button to have the buttons
select the ranges addresses listed in K1:K26 - this assumes that the labels
are A, B, C, etc.

Sub WhoRang()
Dim myname As String
Dim myStr As String

myname = Application.Caller
myStr = Left(ActiveSheet.Shapes(myname).TextFrame.Characte rs.Text, 1)
Application.Goto Range(Range("K" & Asc(myStr) - Asc("A") + 1).Value)

End Sub

HTH,
Bernie
MS Excel MVP




"KenInPortland" wrote in message
...
I need to make a hyperlink from a graphic to link indirectly to a cell or a
range of cells in the same worksheet.
The worksheet is alphabetized and I have created graphic buttons across
the
top with the letters A to Z. The number of rows (1000+) changes frequently
and the A to Z tabs are used to index into the correct area of the
spreadsheet, which I have been manually updating.

I can calculate the starting address for each of the tabs, but I have yet
to
find the proper combination of Hypertext, Cell, Indirect, &, ", ', # etc.
to
jump from the 26 graphics labeled A to Z to the proper cells address which
are contained in K1 to K26.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Indirect Hyperlink from a graphic to a calculated cell or rang

Thanks Bernie,
You put me on the right track, I have some work to do, since I simplified my
situation for the post.

Do you know of a way to accomplish this functionality without a macro or VBA?

The annoying "enable macros" "disable macros" message will create a problem
for the hundreds I distribute this to.

"Bernie Deitrick" wrote:

Ken,

Assign a macro that reads the text from the button and acts on the basis of
the return. For example, assign this to each button to have the buttons
select the ranges addresses listed in K1:K26 - this assumes that the labels
are A, B, C, etc.

Sub WhoRang()
Dim myname As String
Dim myStr As String

myname = Application.Caller
myStr = Left(ActiveSheet.Shapes(myname).TextFrame.Characte rs.Text, 1)
Application.Goto Range(Range("K" & Asc(myStr) - Asc("A") + 1).Value)

End Sub

HTH,
Bernie
MS Excel MVP




"KenInPortland" wrote in message
...
I need to make a hyperlink from a graphic to link indirectly to a cell or a
range of cells in the same worksheet.
The worksheet is alphabetized and I have created graphic buttons across
the
top with the letters A to Z. The number of rows (1000+) changes frequently
and the A to Z tabs are used to index into the correct area of the
spreadsheet, which I have been manually updating.

I can calculate the starting address for each of the tabs, but I have yet
to
find the proper combination of Hypertext, Cell, Indirect, &, ", ', # etc.
to
jump from the 26 graphics labeled A to Z to the proper cells address which
are contained in K1 to K26.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Indirect Hyperlink from a graphic to a calculated cell or rang

Ken,

Use a hyperlink in a cell:

=HYPERLINK("[book6.xls]Sheet1!" & K1,"A")

If you sheet name has spaces in it, then you need

=HYPERLINK("[book 6.xls]'Sheet 1'!" & K1,"A")

Change the book6.xls to the workbook name, the Sheet1 to the sheet name, and K1 to the cell with the
address that you want to jump to. And change the A to whatever label you want.

HTH,
Bernie
MS Excel MVP


"KenInPortland" wrote in message
...
Thanks Bernie,
You put me on the right track, I have some work to do, since I simplified my
situation for the post.

Do you know of a way to accomplish this functionality without a macro or VBA?

The annoying "enable macros" "disable macros" message will create a problem
for the hundreds I distribute this to.

"Bernie Deitrick" wrote:

Ken,

Assign a macro that reads the text from the button and acts on the basis of
the return. For example, assign this to each button to have the buttons
select the ranges addresses listed in K1:K26 - this assumes that the labels
are A, B, C, etc.

Sub WhoRang()
Dim myname As String
Dim myStr As String

myname = Application.Caller
myStr = Left(ActiveSheet.Shapes(myname).TextFrame.Characte rs.Text, 1)
Application.Goto Range(Range("K" & Asc(myStr) - Asc("A") + 1).Value)

End Sub

HTH,
Bernie
MS Excel MVP




"KenInPortland" wrote in message
...
I need to make a hyperlink from a graphic to link indirectly to a cell or a
range of cells in the same worksheet.
The worksheet is alphabetized and I have created graphic buttons across
the
top with the letters A to Z. The number of rows (1000+) changes frequently
and the A to Z tabs are used to index into the correct area of the
spreadsheet, which I have been manually updating.

I can calculate the starting address for each of the tabs, but I have yet
to
find the proper combination of Hypertext, Cell, Indirect, &, ", ', # etc.
to
jump from the 26 graphics labeled A to Z to the proper cells address which
are contained in K1 to K26.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Indirect Hyperlink from a graphic to a calculated cell or rang

Thanks Bernie,
Using a cell per hyperlink is not an option (too many links not enough cells
of the appropriate size), so I bit the bullet and used the macro approach you
described below and it works great. Here is my code which compares the first
5 chars of the buttons to column J and jumps to the corresponding K column
location. We'll see how the users react to recieving a macro.

Thanks so much, I never would have found the answer elsewhere.
Ken

"Bernie Deitrick" wrote:

Ken,

Use a hyperlink in a cell:

=HYPERLINK("[book6.xls]Sheet1!" & K1,"A")

If you sheet name has spaces in it, then you need

=HYPERLINK("[book 6.xls]'Sheet 1'!" & K1,"A")

Change the book6.xls to the workbook name, the Sheet1 to the sheet name, and K1 to the cell with the
address that you want to jump to. And change the A to whatever label you want.

HTH,
Bernie
MS Excel MVP


"KenInPortland" wrote in message
...
Thanks Bernie,
You put me on the right track, I have some work to do, since I simplified my
situation for the post.

Do you know of a way to accomplish this functionality without a macro or VBA?

The annoying "enable macros" "disable macros" message will create a problem
for the hundreds I distribute this to.

"Bernie Deitrick" wrote:

Ken,

Assign a macro that reads the text from the button and acts on the basis of
the return. For example, assign this to each button to have the buttons
select the ranges addresses listed in K1:K26 - this assumes that the labels
are A, B, C, etc.

Sub WhoRang()
Dim myname As String
Dim myStr As String

myname = Application.Caller
myStr = Left(ActiveSheet.Shapes(myname).TextFrame.Characte rs.Text, 1)
Application.Goto Range(Range("K" & Asc(myStr) - Asc("A") + 1).Value)

End Sub

HTH,
Bernie
MS Excel MVP




"KenInPortland" wrote in message
...
I need to make a hyperlink from a graphic to link indirectly to a cell or a
range of cells in the same worksheet.
The worksheet is alphabetized and I have created graphic buttons across
the
top with the letters A to Z. The number of rows (1000+) changes frequently
and the A to Z tabs are used to index into the correct area of the
spreadsheet, which I have been manually updating.

I can calculate the starting address for each of the tabs, but I have yet
to
find the proper combination of Hypertext, Cell, Indirect, &, ", ', # etc.
to
jump from the 26 graphics labeled A to Z to the proper cells address which
are contained in K1 to K26.









  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Indirect Hyperlink from a graphic to a calculated cell or rang

Here is the code,
Sub WhoRang()
Dim ButtonLabel As String
Dim First6chars As String
Dim RowNum As String

' This subroutine is attached to each graphic box
ButtonLabel = Application.Caller
' Get the first six characters of the ButtonLabel
First6chars =
Left(ActiveSheet.Shapes(ButtonLabel).TextFrame.Cha racters.Text, 6)
' Use the first six characters to match column J
RowNum = Range("J1:J32").Find(What:=First6chars).Row
' Use the resulting RowNum to get the Range of cells from column K to Go to
Application.Goto Range(Range("K" & RowNum).Value)

'Debug.Print ButtonLabel, First6chars, RowNum
End Sub

"Bernie Deitrick" wrote:

Ken,

Use a hyperlink in a cell:

=HYPERLINK("[book6.xls]Sheet1!" & K1,"A")

If you sheet name has spaces in it, then you need

=HYPERLINK("[book 6.xls]'Sheet 1'!" & K1,"A")

Change the book6.xls to the workbook name, the Sheet1 to the sheet name, and K1 to the cell with the
address that you want to jump to. And change the A to whatever label you want.

HTH,
Bernie
MS Excel MVP


"KenInPortland" wrote in message
...
Thanks Bernie,
You put me on the right track, I have some work to do, since I simplified my
situation for the post.

Do you know of a way to accomplish this functionality without a macro or VBA?

The annoying "enable macros" "disable macros" message will create a problem
for the hundreds I distribute this to.

"Bernie Deitrick" wrote:

Ken,

Assign a macro that reads the text from the button and acts on the basis of
the return. For example, assign this to each button to have the buttons
select the ranges addresses listed in K1:K26 - this assumes that the labels
are A, B, C, etc.

Sub WhoRang()
Dim myname As String
Dim myStr As String

myname = Application.Caller
myStr = Left(ActiveSheet.Shapes(myname).TextFrame.Characte rs.Text, 1)
Application.Goto Range(Range("K" & Asc(myStr) - Asc("A") + 1).Value)

End Sub

HTH,
Bernie
MS Excel MVP




"KenInPortland" wrote in message
...
I need to make a hyperlink from a graphic to link indirectly to a cell or a
range of cells in the same worksheet.
The worksheet is alphabetized and I have created graphic buttons across
the
top with the letters A to Z. The number of rows (1000+) changes frequently
and the A to Z tabs are used to index into the correct area of the
spreadsheet, which I have been manually updating.

I can calculate the starting address for each of the tabs, but I have yet
to
find the proper combination of Hypertext, Cell, Indirect, &, ", ', # etc.
to
jump from the 26 graphics labeled A to Z to the proper cells address which
are contained in K1 to K26.







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
Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions Mike Barlow Excel Worksheet Functions 7 May 21st 23 07:42 PM
Hyperlink to Named Range Based On Cell Contents TKS_Mark Excel Worksheet Functions 1 January 9th 08 04:14 PM
How do I insert a calculated cell range into an excel function Gary Wallis Excel Worksheet Functions 2 April 26th 07 03:28 PM
Keep hyperlink, delete graphic hmm Excel Discussion (Misc queries) 0 January 2nd 07 10:18 AM
How to hyperlink to a graphic? Margee McC Excel Discussion (Misc queries) 1 August 6th 05 10:36 PM


All times are GMT +1. The time now is 06:30 AM.

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"