Cell referencing a span small prob.

richh

Board Regular
Joined
Jun 24, 2007
Messages
245
Office Version
  1. 365
  2. 2016
I was wondering if there was a way for a cell that references a span could spawn at the first cell referenced rather than the last.

example - cell A1 on sheet 1 references cells B1:B52 on sheet 2. When I click on A1, which is hyperlink, it takes me to B52 on sheet 2 rather than B1. Is there a way to make it spawn at B1?
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I was wondering if there was a way for a cell that references a span could spawn at the first cell referenced rather than the last.

example - cell A1 on sheet 1 references cells B1:B52 on sheet 2. When I click on A1, which is hyperlink, it takes me to B52 on sheet 2 rather than B1. Is there a way to make it spawn at B1?
How is cell A1 referencing Sheet2!B1:B52?

Try this hyperlink formula entered in cell A1:

=HYPERLINK("#Sheet2!B1","B1")

Change "B1" with whatever you want to be displayed in the cell.
 
Upvote 0
A1 has the county name of Alpine in it. I just did cntl+k and entered in the hyper link range there.

how would i put that in while still retaining the word Alpine?
 
Upvote 0
A1 has the county name of Alpine in it. I just did cntl+k and entered in the hyper link range there.

how would i put that in while still retaining the word Alpine?
Like this...

=HYPERLINK("#Sheet2!B1","Alpine")
 
Upvote 0
lol like you said in your first reply, which i read at least 3 times and just couldnt get it through my thick skull, eh?

but that doesnt seem to work for me. ive changed the 2nd sheet's name to "extended info". I've tried referencing it to =HYPERLINK("#extended_info!b3","Alpine"), but it says the reference is invalid. But what I'm looking to do is reference b3:b52 and upon click, will direct the click to b3 rather than all the way down to b52.
 
Upvote 0
Try in Sheet1's code module:
Code:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Set xxx = Evaluate(Target.SubAddress)
xxx.Cells(xxx.Cells.Count).Activate
End Sub
At the moment it will treat all hyperlinks the same, that is making the last cell in each hyperlink the active cell.
 
Upvote 0
lol like you said in your first reply, which i read at least 3 times and just couldnt get it through my thick skull, eh?

but that doesnt seem to work for me. ive changed the 2nd sheet's name to "extended info". I've tried referencing it to =HYPERLINK("#extended_info!b3","Alpine"), but it says the reference is invalid. But what I'm looking to do is reference b3:b52 and upon click, will direct the click to b3 rather than all the way down to b52.
That works just fine for me in both Excel 2002 and 2007.

Did you delete the original non-formula hyperlink you were using?
 
Upvote 0
Try in Sheet1's code module:
Code:
Private Sub Worksheet_FollowHyperlink(ByVal Target As Hyperlink)
Set xxx = Evaluate(Target.SubAddress)
xxx.Cells(xxx.Cells.Count).Activate
End Sub
At the moment it will treat all hyperlinks the same, that is making the last cell in each hyperlink the active cell.

I'm really not familiar with excels code and I wouldn't know where I'd put it or what areas in that code need fixed to what's in my sheet. And I'm trying to make the first cell in the hyperlink the active cell. I appreciate the help though

That works just fine for me in both Excel 2002 and 2007.

Did you delete the original non-formula hyperlink you were using?

yeah it's not workin for me. I even tried just typing in =HYPERLINK( then selected the 'extended info" page, and the range. Just not goin for me.
 
Upvote 0
Thanks both of ya for the help; I'm gonna try to tackle this next Monday as my work day is over. If anything, I'll just have these links go to one cell rather than a range.

Thanks again!!
 
Upvote 0

Forum statistics

Threads
1,215,446
Messages
6,124,900
Members
449,194
Latest member
JayEggleton

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top