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


Hello Experts!

Another question that I am incapable to resolve - oh and btw i dunno if
this is the right forum to post in!!

I have several sheets with data and cells that are manually colour
coded for their approval status.

Then I have a summary page that colates all the info with the folowing
formulas:
In cell A1: =IF(Sheet2!A1=0,"",Sheet2!A1)

Is there a way to colour the cell in the same way as the cell it links
from?

Many thanks


--
Petitboeuf
------------------------------------------------------------------------
Petitboeuf's Profile: http://www.excelforum.com/member.php...o&userid=10602
View this thread: http://www.excelforum.com/showthread...hreadid=547465

  #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

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
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 03:09 AM.

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

About Us

"It's about Microsoft Excel"