LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Established spreadsheet shows err for errors for div/0

If you don't have any array formulas in your worksheet then:

Sub Adjustformula()
Set rng = Cells.SpecialCells(xlFormulas)
For Each cell In rng
sForm = cell.Formula
' remove equal sign
sForm = Right(sForm, Len(sForm) - 1)
cell.Formula = "=IF(iserror(" & sForm & "),""""," & _
sForm & ")"
Next
End Sub


will adjust all your formulas to suppess error values.

If you have array formulas, then the macro would be a bit more complex.

--
Regards,
Tom Ogilvy





"Chris Sergent" wrote in message
...
I am so novice at programming in MS Excel.

However,
I have an Excel spreadsheet with a great deal of formulas
on it. Is there a way to either globally suppress errors
on an Excel spreadsheet. If not, what code could be
written to check the current spreadsheet for any cells
that produce an error, to show up as "" without actually
changing the formula that already exists. Because all of
the formulas are different, a find and replace will not
work.

I appreciate any help. Thanks.

Chris



 
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
My spreadsheet shows 1, 2, 3... instead of A, B, C, for columns Culleoka Excel Discussion (Misc queries) 2 September 10th 08 12:53 AM
Draw Arrow only shows endpoints, file has errors Davevdm Excel Discussion (Misc queries) 0 March 17th 06 10:11 PM
Excel Spreadsheet Shows Nothing! Dolphinv4 Excel Discussion (Misc queries) 2 October 3rd 05 11:33 AM
Established spreadsheet shows err for errors for div/0 Dick Kusleika Excel Programming 0 August 13th 03 04:47 PM
Established spreadsheet shows err for errors for div/0 Niek Otten Excel Programming 0 August 13th 03 04:43 PM


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