Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default conditional format if the cell contains a formula

I would like to colour code all the cells in my spreadsheet based on whether
they contain a formula or not.

is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default conditional format if the cell contains a formula


http://www.j-walk.com/ss/excel/usertips/tip045.htm

Regards,
Bill


"ellebelle" wrote:

I would like to colour code all the cells in my spreadsheet based on whether
they contain a formula or not.

is this possible?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default conditional format if the cell contains a formula

that is great, although what if i want the opposite effect. everytime i enter
a value manuallly i want to highlight it?

"Bill Pfister" wrote:


http://www.j-walk.com/ss/excel/usertips/tip045.htm

Regards,
Bill


"ellebelle" wrote:

I would like to colour code all the cells in my spreadsheet based on whether
they contain a formula or not.

is this possible?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default conditional format if the cell contains a formula

Set the cells so that they are normally highlighted and use the conditional
formatting to make the cell appear normal when the condition is true.

Instead of using the formula ("CellHasFormula") as a named-range, you can
use a user-defined function in the condition.

Put this code in any module of the workbook:

public function IsConstant()
IsConstant = not(application.caller.hasformula)
end function

Then use "=IsConstant()" as your formula in the conditional formatting.




"ellebelle" wrote:

that is great, although what if i want the opposite effect. everytime i enter
a value manuallly i want to highlight it?

"Bill Pfister" wrote:


http://www.j-walk.com/ss/excel/usertips/tip045.htm

Regards,
Bill


"ellebelle" wrote:

I would like to colour code all the cells in my spreadsheet based on whether
they contain a formula or not.

is this possible?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default conditional format if the cell contains a formula

that works, although can you get it to ignore empty cells?

"Bill Pfister" wrote:

Set the cells so that they are normally highlighted and use the conditional
formatting to make the cell appear normal when the condition is true.

Instead of using the formula ("CellHasFormula") as a named-range, you can
use a user-defined function in the condition.

Put this code in any module of the workbook:

public function IsConstant()
IsConstant = not(application.caller.hasformula)
end function

Then use "=IsConstant()" as your formula in the conditional formatting.




"ellebelle" wrote:

that is great, although what if i want the opposite effect. everytime i enter
a value manuallly i want to highlight it?

"Bill Pfister" wrote:


http://www.j-walk.com/ss/excel/usertips/tip045.htm

Regards,
Bill


"ellebelle" wrote:

I would like to colour code all the cells in my spreadsheet based on whether
they contain a formula or not.

is this possible?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 132
Default conditional format if the cell contains a formula



Public Function IsConstant()
If (Len(Application.Caller.Value) = 0) Then
IsConstant = False
Else
IsConstant = Not (Application.Caller.HasFormula)
End If
End Function



"ellebelle" wrote:

that works, although can you get it to ignore empty cells?

"Bill Pfister" wrote:

Set the cells so that they are normally highlighted and use the conditional
formatting to make the cell appear normal when the condition is true.

Instead of using the formula ("CellHasFormula") as a named-range, you can
use a user-defined function in the condition.

Put this code in any module of the workbook:

public function IsConstant()
IsConstant = not(application.caller.hasformula)
end function

Then use "=IsConstant()" as your formula in the conditional formatting.




"ellebelle" wrote:

that is great, although what if i want the opposite effect. everytime i enter
a value manuallly i want to highlight it?

"Bill Pfister" wrote:


http://www.j-walk.com/ss/excel/usertips/tip045.htm

Regards,
Bill


"ellebelle" wrote:

I would like to colour code all the cells in my spreadsheet based on whether
they contain a formula or not.

is this possible?

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
Conditional Format DaveyJones Excel Discussion (Misc queries) 9 September 5th 06 11:43 AM
Conditional Format as a MACRO Gunjani Excel Worksheet Functions 3 March 29th 06 05:22 PM
enhanced conditional formatting Stuart Excel Discussion (Misc queries) 13 November 13th 05 07:20 PM
Cond. Format & Absolute Cell Reference Question nastech Excel Discussion (Misc queries) 4 November 9th 05 05:02 PM
How do I do conditional format based on a cell with a formula? Justin Excel Worksheet Functions 9 December 17th 04 02:05 PM


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