Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need a formula for returning the value of the cell shading in a cell

Is there a forumla I can use to return the numerical value of what color
a cell is shaded or its background color is?

Say I have a cell B24, and i want to set cell D24 equal to the numerical
value (of the background or shading color) of B24.

Is this even possible?



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Need a formula for returning the value of the cell shading in a cell

Try,

Sub colourtest()
s = ActiveCell.Interior.ColorIndex
MsgBox s
End Sub

HTH's
Russell.

-----Original Message-----
Is there a forumla I can use to return the numerical

value of what color
a cell is shaded or its background color is?

Say I have a cell B24, and i want to set cell D24 equal

to the numerical
value (of the background or shading color) of B24.

Is this even possible?



*** Sent via Developersdex http://www.developersdex.com

***
Don't just participate in USENET...get rewarded for it!
.

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 Shading via a formula? Wayne Excel Discussion (Misc queries) 3 March 5th 08 10:57 AM
Conditional Cell Shading (based on the shading of other cells) Tubby Excel Worksheet Functions 2 June 20th 06 10:03 PM
Returning the formula in another cell gelert Excel Worksheet Functions 2 September 6th 05 01:48 AM
Is there a formula, function or macro that accounts for shading of a cell or row? Jamie Furlong Excel Discussion (Misc queries) 1 August 12th 05 09:55 AM
Returning the formula in a cell Sukhjeet Excel Discussion (Misc queries) 0 June 29th 05 11:24 AM


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