Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
stainless
 
Posts: n/a
Default Hyperlink problem to cell in same workbook

I have a hyperlink created by a VB program that should link to a cell
on a different worksheet within the same book.


The hyperlink code currently is as follows:


=HYPERLINK(ADDRESS(4,2,1,FALSE,"MultipleAliases"), "MULTIPLE DP
ALIASES")


MultipleAliases is a separate worksheet and I want the link to jump to
row 4 cell 2 on this sheet.


I realise that normally you need a spreadsheet identifier as part of
the worksheet definition, thus the "MultipleAliases" would be
"[FILE1.XLS]MultipleAliases" if this was saved as FILE1.XLS.


If I do save this file with the altered hyperlink it works. The problem

is when the spreadsheet is first created, it is not yet saved (I guess
it is held in the temporary folder). Thus the hyperlink does not work,
even without [FILE1.XLS] in the text.


While this is still a temporary unsaved file, how do I define the sheet

identifier part of my ADDRESS statement so that it finds the
MultipleAliases sheet in the current document?


You can easily try this out by opening an excel spreadsheet, rename
Sheet2 to MultipleAliases and trying variations of the hyperlink text
in a Sheet1 cell.


Please note, I cannot define the cell to jump to in terms of a named
cell and can only use co-ordinates to identify it (due to this text
being created by VB), hence the use of ADDRESS to locate the cell.


Cheers


Mark

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Hyperlink problem to cell in same workbook

You have replies at your other posts.

stainless wrote:

I have a hyperlink created by a VB program that should link to a cell
on a different worksheet within the same book.

The hyperlink code currently is as follows:

=HYPERLINK(ADDRESS(4,2,1,FALSE,"MultipleAliases"), "MULTIPLE DP
ALIASES")

MultipleAliases is a separate worksheet and I want the link to jump to
row 4 cell 2 on this sheet.

I realise that normally you need a spreadsheet identifier as part of
the worksheet definition, thus the "MultipleAliases" would be
"[FILE1.XLS]MultipleAliases" if this was saved as FILE1.XLS.

If I do save this file with the altered hyperlink it works. The problem

is when the spreadsheet is first created, it is not yet saved (I guess
it is held in the temporary folder). Thus the hyperlink does not work,
even without [FILE1.XLS] in the text.

While this is still a temporary unsaved file, how do I define the sheet

identifier part of my ADDRESS statement so that it finds the
MultipleAliases sheet in the current document?

You can easily try this out by opening an excel spreadsheet, rename
Sheet2 to MultipleAliases and trying variations of the hyperlink text
in a Sheet1 cell.

Please note, I cannot define the cell to jump to in terms of a named
cell and can only use co-ordinates to identify it (due to this text
being created by VB), hence the use of ADDRESS to locate the cell.

Cheers

Mark


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary L Brown
 
Posts: n/a
Default Hyperlink problem to cell in same workbook

One option is to use the following code instead of the code used by your VB
program to create the hyperlink...

Dim strWksht As String
strWksht = "Sheet1"
Application.Worksheets(strWksht).Hyperlinks.Add _
Anchor:=Selection.Offset(0, 0), _
Address:="", SubAddress:=Chr(39) & _
strWksht & Chr(39) & "!B4"

The above code will create a hyperlink whereever your cursor is with a
hyperlink to Sheet1!B4. Adjust the code to your specifics.

HTH,
--
Gary Brown

If this post was helpful, please click the ''''Yes'''' button next to
''''Was this Post Helpfull to you?".


"stainless" wrote:

I have a hyperlink created by a VB program that should link to a cell
on a different worksheet within the same book.


The hyperlink code currently is as follows:


=HYPERLINK(ADDRESS(4,2,1,FALSE,"MultipleAliases"), "MULTIPLE DP
ALIASES")


MultipleAliases is a separate worksheet and I want the link to jump to
row 4 cell 2 on this sheet.


I realise that normally you need a spreadsheet identifier as part of
the worksheet definition, thus the "MultipleAliases" would be
"[FILE1.XLS]MultipleAliases" if this was saved as FILE1.XLS.


If I do save this file with the altered hyperlink it works. The problem

is when the spreadsheet is first created, it is not yet saved (I guess
it is held in the temporary folder). Thus the hyperlink does not work,
even without [FILE1.XLS] in the text.


While this is still a temporary unsaved file, how do I define the sheet

identifier part of my ADDRESS statement so that it finds the
MultipleAliases sheet in the current document?


You can easily try this out by opening an excel spreadsheet, rename
Sheet2 to MultipleAliases and trying variations of the hyperlink text
in a Sheet1 cell.


Please note, I cannot define the cell to jump to in terms of a named
cell and can only use co-ordinates to identify it (due to this text
being created by VB), hence the use of ADDRESS to locate the cell.


Cheers


Mark


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary L Brown
 
Posts: n/a
Default Hyperlink problem to cell in same workbook

You wasted my time.
NOT APPRECIATED!!!!!!!!!!!!!!!!
--
Gary Brown

"stainless" wrote:

I have a hyperlink created by a VB program that should link to a cell
on a different worksheet within the same book.


The hyperlink code currently is as follows:


=HYPERLINK(ADDRESS(4,2,1,FALSE,"MultipleAliases"), "MULTIPLE DP
ALIASES")


MultipleAliases is a separate worksheet and I want the link to jump to
row 4 cell 2 on this sheet.


I realise that normally you need a spreadsheet identifier as part of
the worksheet definition, thus the "MultipleAliases" would be
"[FILE1.XLS]MultipleAliases" if this was saved as FILE1.XLS.


If I do save this file with the altered hyperlink it works. The problem

is when the spreadsheet is first created, it is not yet saved (I guess
it is held in the temporary folder). Thus the hyperlink does not work,
even without [FILE1.XLS] in the text.


While this is still a temporary unsaved file, how do I define the sheet

identifier part of my ADDRESS statement so that it finds the
MultipleAliases sheet in the current document?


You can easily try this out by opening an excel spreadsheet, rename
Sheet2 to MultipleAliases and trying variations of the hyperlink text
in a Sheet1 cell.


Please note, I cannot define the cell to jump to in terms of a named
cell and can only use co-ordinates to identify it (due to this text
being created by VB), hence the use of ADDRESS to locate the cell.


Cheers


Mark


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
stainless
 
Posts: n/a
Default Hyperlink problem to cell in same workbook

Many apologies if you believe I wasted your time. I simply posted the
same question in more than one group in the hope I would get an answer.
I do appreciate everybodies help.

Thanks Gary

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 problem to cell in same workbook stainless Excel Discussion (Misc queries) 1 November 15th 05 04:53 PM
How do I copy a cell + it's formula from one workbook to another? excel _ help for the hopeless, please Excel Discussion (Misc queries) 4 October 11th 05 11:48 PM
copying cell names Al Excel Discussion (Misc queries) 12 August 11th 05 03:01 PM
Problem with formulas changing cell reference janicesweet Excel Discussion (Misc queries) 1 August 2nd 05 06:23 PM
Hyperlink a word within a cell kchambers Excel Discussion (Misc queries) 2 March 9th 05 03:29 PM


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