LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Precedent arrow - link number

Hi

have a question re Precedents in Excel. When I click a cell containg some
references to other worksheets a small icon shows up next to the cell. When
clicked it shows a Go to window with references (paths) to precedent cells
from other worksheets. I want to get that list of references using VBA. When
I record a macro it looks like this:

Sub Makro3()

Selection.ShowPrecedents
'I clicked the third position from the list
ActiveCell.NavigateArrow TowardPrecedent:=True, ArrowNumber:=1,
LinkNumber _
:=3
ActiveSheet.ClearArrows
End Sub

How can I get the reference that appears in this macro as LinkNumber:=3. I
want to use this in some other place in my code so I want to assign it to a
variable of string type.

Kind regards
Igor


 
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
Precedent lines Sally Excel Worksheet Functions 1 November 29th 09 11:18 AM
Excel 2007 - Macro (VB) code for arrow down & arrow up Grindy Excel Discussion (Misc queries) 5 January 28th 09 04:30 AM
why dont shift+arrow or ctrl+arrow work in 2007 Naguib Excel Discussion (Misc queries) 1 July 24th 07 04:40 PM
precedent IcyMan Excel Discussion (Misc queries) 3 August 30th 05 11:29 PM
Precedent/Dependent in VB Eric[_14_] Excel Programming 2 November 28th 03 10:38 AM


All times are GMT +1. The time now is 09:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"