Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default How find all formulas on tab?

Thanks in advance.
I have a request from my supervisor to make an Excel file
value only. I can do that by copying and then paste
special, values. But before I do that, I want to check if
there are any cells in the tab that have formulas, and
therefore "need" to be pasted special. Is there a way to
get info on which cells are formulas? I know of the Trace
Precedents and Trace Dependents buttons, but I don't know
how to do for a whole worksheet at a time.
Thanks again.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How find all formulas on tab?

You could try searching for the "=" sign :o)

Hope this helps

Julia
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How find all formulas on tab?

Hi Ian

MsgBox ActiveSheet.Cells.SpecialCells(xlCellTypeFormulas) .Count

Or manual

F5
Special
Check formulas
OK

--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2000-2003)
www.rondebruin.nl



"Ian Elliott" wrote in message ...
Thanks in advance.
I have a request from my supervisor to make an Excel file
value only. I can do that by copying and then paste
special, values. But before I do that, I want to check if
there are any cells in the tab that have formulas, and
therefore "need" to be pasted special. Is there a way to
get info on which cells are formulas? I know of the Trace
Precedents and Trace Dependents buttons, but I don't know
how to do for a whole worksheet at a time.
Thanks again.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default How find all formulas on tab?

Dim rng as Range
On Error Resume Next
set rng = cells.SpecialCells(xlFormulas)
On Error goto 0
if not rng is nothing then
rng.Formula = rng.Value
End if

Should change to values where appropriate.

--
Regards,
Tom Ogilvy


"Ian Elliott" wrote in message
...
Thanks in advance.
I have a request from my supervisor to make an Excel file
value only. I can do that by copying and then paste
special, values. But before I do that, I want to check if
there are any cells in the tab that have formulas, and
therefore "need" to be pasted special. Is there a way to
get info on which cells are formulas? I know of the Trace
Precedents and Trace Dependents buttons, but I don't know
how to do for a whole worksheet at a time.
Thanks again.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How find all formulas on tab?

"Ian Elliott" wrote in message ...
Thanks in advance.
I have a request from my supervisor to make an Excel file
value only. I can do that by copying and then paste
special, values. But before I do that, I want to check if
there are any cells in the tab that have formulas, and
therefore "need" to be pasted special. Is there a way to
get info on which cells are formulas? I know of the Trace
Precedents and Trace Dependents buttons, but I don't know
how to do for a whole worksheet at a time.
Thanks again.


Ian:
There is a few ways to see which cells contain formulas:

Option 1
Edit menu - Goto - click the "Special" button - check the Formulas box
This will highlight all cells on a sheet that contain formulas.

Option 2
Select Tools - Options - View tab - Window Options - check the
Formulas box.
This will then show the actual formula in each cell on the sheet.
Note that it will change your view of the sheet as the cells then
expand to show the entire formula on the screen. You can change back
to regular view by unchecking the Formulas box.

Option 1 may serve better, as you only want to see if formulas exist
on the sheet prompting you to use Paste Special-Values. If no formulas
exist on the sheet, you'll receive a message that says "No Cells Were
Found" meaning the sheet is already all values and normal Paste will
work fine.

Hope it helps,

Rick
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
I am trying to find cotangent in the formulas. Robin Excel Discussion (Misc queries) 10 August 24th 09 01:57 AM
Find Cells with Formulas RJB Excel Discussion (Misc queries) 4 March 4th 08 07:11 PM
Find Cells that do not have Formulas in them. Tony Excel Worksheet Functions 3 December 28th 07 02:04 PM
where can I find help with excel formulas? trying to learn Excel Discussion (Misc queries) 3 September 14th 06 08:23 AM
I NEED TO FIND TWO FORMULAS audi Excel Worksheet Functions 7 July 26th 05 08:36 PM


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