Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default how to identify cells containing formulas


The following macro will do this for you - i can e-mail you this as an addin
is you want which will enable you to click on a toolbar button and use it in
any spreadsheet

Sub ShowFormulas()
Dim cell As Range
On Error Resume Next

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

For Each cell In Cells.SpecialCells(xlCellTypeConstants)
If IsNumeric(cell.Value) Then
cell.Interior.ColorIndex = 4
End If
Next cell

Application.Calculation = xlCalculationAutomatic

End Sub



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 124
Default how to identify cells containing formulas

Hi, JS:

There's another argument for SpecialCells that allows you to specify just numbers (just as you
can in the Goto/Special dialog box). That eliminates the need for your IsNumeric check.

On Thu, 24 Jul 2003 21:04:04 +0000 (UTC), "JS" wrote:


The following macro will do this for you - i can e-mail you this as an addin
is you want which will enable you to click on a toolbar button and use it in
any spreadsheet

Sub ShowFormulas()
Dim cell As Range
On Error Resume Next

Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual

For Each cell In Cells.SpecialCells(xlCellTypeConstants)
If IsNumeric(cell.Value) Then
cell.Interior.ColorIndex = 4
End If
Next cell

Application.Calculation = xlCalculationAutomatic

End Sub



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
Identify external references (in formulas) and color format Mike C Excel Worksheet Functions 9 November 10th 08 07:20 PM
How to identify offset data and execute multiple formulas davensocal Excel Worksheet Functions 1 September 23rd 08 01:04 AM
Identify Text on two cells Jerry (the latin men) Excel Discussion (Misc queries) 1 August 1st 08 04:27 PM
How to identify text from a autofiltered list using formulas Harryac Excel Worksheet Functions 1 July 13th 06 11:45 PM
Identify cells with a value (excluding formulas) Dark_Templar Excel Discussion (Misc queries) 5 May 12th 06 04:20 AM


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