Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default function that returns cell and or font color of another cell

is there a cell that returns the numeric d=code for the font or background
color of another cell?

thanks in advance,
mark
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default function that returns cell and or font color of another cell

Chip Pearson's page has an excellent write-up

http://www.cpearson.com/excel/colors.aspx

On May 30, 8:23 am, Mark Kubicki <Mark
wrote:
is there a cell that returns the numeric d=code for the font or background
color of another cell?

thanks in advance,
mark


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default function that returns cell and or font color of another cell

Sub MarkColor()
x = Range("A1").Font.ColorIndex
y = Range("A1").Interior.ColorIndex
MsgBox "Font color is " & x & ", Interior color is " & y & "."
End Sub

"Mark Kubicki" wrote:

is there a cell that returns the numeric d=code for the font or background
color of another cell?

thanks in advance,
mark

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
Cell Function/Font Color HpyTrvlr69 Excel Worksheet Functions 2 May 12th 10 11:08 PM
selection.font.color returns wrong color; the first execution AnExpertNovice Excel Programming 14 February 7th 06 12:30 PM
Can I modify cell attributes (font,color etc.) based on function . TicklePig Excel Discussion (Misc queries) 4 December 4th 05 04:23 AM
Change Font Color in cell Based on another cell value John Excel Programming 2 November 18th 05 05:28 PM
Function calls a Sub to change the cell font color grahamd Excel Programming 4 October 15th 04 02:46 PM


All times are GMT +1. The time now is 01:29 AM.

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"