Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default cell already referenced

Hallo,

i want to know if it's possible to see if the cell is already
referenced by another cell.

For example:
I have a cell A1. Then I have a cell B1=A1+1
I want to know if there is some way that shows me that cell A1 is
referenced in cell B1.


thanks in advance.
Rg,
Peter
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default cell already referenced

See the Precedents and DirectPrecedents properties. E.g.,

Debug.Print Range("A1").Precendents.Address


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2008
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

"peter" wrote in message
...
Hallo,

i want to know if it's possible to see if the cell is already
referenced by another cell.

For example:
I have a cell A1. Then I have a cell B1=A1+1
I want to know if there is some way that shows me that cell A1 is
referenced in cell B1.


thanks in advance.
Rg,
Peter


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default cell already referenced

Sub Macro1()
For Each r In ActiveSheet.UsedRange
If r.HasFormula Then
r.ShowPrecedents
End If
Next
End Sub

will display all the references in the worksheet
--
Gary''s Student - gsnu2007d


"peter" wrote:

Hallo,

i want to know if it's possible to see if the cell is already
referenced by another cell.

For example:
I have a cell A1. Then I have a cell B1=A1+1
I want to know if there is some way that shows me that cell A1 is
referenced in cell B1.


thanks in advance.
Rg,
Peter

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
bold text of referenced cell show in formula cell zabcikranch Excel Worksheet Functions 1 February 2nd 10 07:42 PM
Return Results of a cell based on cell referenced in a cell Drew Excel Worksheet Functions 4 September 3rd 09 06:19 PM
Change Text Color in one cell based upon entry in referenced cell Tee Excel Discussion (Misc queries) 3 September 12th 08 10:07 PM
The absolute referenced cell does not move when source cell moves johnc Excel Worksheet Functions 2 May 8th 06 06:33 PM
How do I double click a cell and jump to cell's referenced cell JerryJuice Excel Discussion (Misc queries) 2 September 10th 05 10:24 PM


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