PC Review


Reply
Thread Tools Rate Thread

How do I get a "link-to" cell to appear in upper left (Excel)

 
 
Dadders
Guest
Posts: n/a
 
      14th Aug 2008
In Excel, I would like to ensure that, if a link points to a cell in the
middile of the target page, then that named cell should appear at the upper
left corner of the resulting view. How do I get there from here?

 
Reply With Quote
 
 
 
 
Héctor Miguel
Guest
Posts: n/a
 
      15th Aug 2008
hi, !

> In Excel, I would like to ensure that, if a link points to a cell in the middile of the target page
> then that named cell should appear at the upper left corner of the resulting view.
> How do I get there from here?


copy/paste/type/... the following in ThisWorkbook code module...

Dim fromHyperlink As Boolean
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
fromHyperlink = Target.Hyperlinks.Count
If fromHyperlink Then
ActiveWindow.ScrollRow = ActiveCell.Row
ActiveWindow.ScrollColumn = ActiveCell.Column
fromHyperlink = False
End If
End Sub

hth,
hector.


 
Reply With Quote
 
Dadders
Guest
Posts: n/a
 
      14th Sep 2008
Hi. Hector. Thanks for the module. Looks good but, for some reason, it's
not working. I'll study it out a little more and see what I can come up with.

Note; My test case is a hyperlink which refers to cell A141 on another
spreadsheet in the same work book. When the link is activated, Cell A141
will appear in a variety of locatins, sometimes as the very last row in the
display, sometimes about midway down, but NEVER in the Upper Left corner of
the display.

Thanks again for your help!

"Héctor Miguel" wrote:

> hi, !
>
> > In Excel, I would like to ensure that, if a link points to a cell in the middile of the target page
> > then that named cell should appear at the upper left corner of the resulting view.
> > How do I get there from here?

>
> copy/paste/type/... the following in ThisWorkbook code module...
>
> Dim fromHyperlink As Boolean
> Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
> fromHyperlink = Target.Hyperlinks.Count
> If fromHyperlink Then
> ActiveWindow.ScrollRow = ActiveCell.Row
> ActiveWindow.ScrollColumn = ActiveCell.Column
> fromHyperlink = False
> End If
> End Sub
>
> hth,
> hector.
>
>
>

 
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
scroll so that the upper left cell in a range moves to the upper left of the active window Andre Microsoft Excel Programming 6 14th Nov 2008 09:33 PM
How can I restore "File" in upper left corner of Word? =?Utf-8?B?Q29uZnVzZWQgV29yZCBVc2Vy?= Microsoft Word Document Management 1 30th May 2007 03:00 PM
red "X" in upper left-hand corner =?Utf-8?B?YmR5YWw=?= Microsoft Powerpoint 1 19th Apr 2005 02:53 PM
Little red "X's" in upper left corner Bobbie Leslie Windows XP General 4 18th Mar 2005 12:49 AM
Red "X" in upper left corner of Encarta Maps Center Map John Windows XP Internet Explorer 6 14th Aug 2003 12:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:22 PM.