LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.misc
mrice
 
Posts: n/a
Default REferencing a cell from another sheet... and taking it's coplour with it?


Try running the following short macro when the sheet containing the
formulae is activated

Sub Process()
Set CellRange = Cells.SpecialCells(xlCellTypeFormulas, 23)
For Each Cell In CellRange
Cell.Interior.ColorIndex = Sheets(Mid(Cell.Formula, 2,
InStr(Cell.Formula, "!") - 2)).Range(Right(Cell.Formula,
Len(Cell.Formula) - InStr(Cell.Formula, "!"))).Interior.ColorIndex
Next Cell
End Sub


--
mrice

Research Scientist with many years of spreadsheet development experience
------------------------------------------------------------------------
mrice's Profile: http://www.excelforum.com/member.php...o&userid=10931
View this thread: http://www.excelforum.com/showthread...hreadid=547465

 
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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Cell but not sheet protection HLS Excel Discussion (Misc queries) 2 April 5th 06 12:38 PM
resetting last cell jagdish.eashwar Excel Discussion (Misc queries) 11 March 31st 06 02:06 AM
Taking out duplicates from a single sheet PokerZan Excel Discussion (Misc queries) 1 June 16th 05 07:02 PM
IF THEN LOGIC flotowntiger Excel Discussion (Misc queries) 5 December 7th 04 12:12 AM


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