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 formatting from within a function

Is it possible to write a custom function which when executed in a cel
,automatically changes its formatting?

Ideally this would look something like this:

FUNCTION CUBE(X) AS DOUBLE
CUBE=X^3
(PSEUDO-CODE --) IF CUBE3 THEN ACTIVECELL.COLOR=RED_

END FUNCTION


I would appreciate any ideas on the subject.Thanks for your attentio

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 535
Default Cell formatting from within a function

Hi Unsichtbar,

Is it possible to write a custom function which when executed in a cell
,automatically changes its formatting?


Check out conditional formatting (Format, conditional format).

Regards,

Jan Karel Pieterse
Excel MVP
www.jkp-ads.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Cell formatting from within a function

With Conditional Formatting you can change some Font attributes (colour,
style), borders and cell colour, but that's all. Check it out in help.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Unsichtbar " wrote in message
...
Is it possible to write a custom function which when executed in a cell
,automatically changes its formatting?

Ideally this would look something like this:

FUNCTION CUBE(X) AS DOUBLE
CUBE=X^3
(PSEUDO-CODE --) IF CUBE3 THEN ACTIVECELL.COLOR=RED_

END FUNCTION


I would appreciate any ideas on the subject.Thanks for your attention


---
Message posted from http://www.ExcelForum.com/



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 Formatting by function BrianG Excel Worksheet Functions 6 November 26th 08 06:54 PM
function formatting a cell papero Excel Discussion (Misc queries) 3 November 19th 07 05:32 PM
formatting a cell with a function (IF statement) Dreaming Excel Worksheet Functions 3 June 30th 05 02:26 AM
Formatting a cell with a function (IF statement) Dreaming Excel Worksheet Functions 2 June 30th 05 02:12 AM
Changing cell formatting with IF function Bruise Excel Worksheet Functions 6 May 21st 05 11:40 PM


All times are GMT +1. The time now is 06:08 PM.

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"