Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default checking errors in the formulas


i must write a macro that checks errors in formulas and returns
message box saying which cell the error occured on. also it must bee
when the message box opens up. i really need help.:

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default checking errors in the formulas

Try something like

Dim ErrCells As Range
Dim Rng As Range
On Error Resume Next
Set ErrCells = ActiveSheet.UsedRange.SpecialCells( _
xlCellTypeFormulas, xlErrors)
On Error GoTo 0
If Not ErrCells Is Nothing Then
For Each Rng In ErrCells
Rng.Select
Beep
MsgBox "Error in cell: " & Rng.Address
Next Rng
End If



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"cawemann" wrote in
message ...

i must write a macro that checks errors in formulas and returns

a
message box saying which cell the error occured on. also it

must beep
when the message box opens up. i really need help.:(


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from

http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default checking errors in the formulas


Lots of thanks for your help Mr. Pearson ! :

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly 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
How can I remove multiple 'errors' in Excel error checking, at the same time??? [email protected] Excel Discussion (Misc queries) 2 May 11th 23 11:42 AM
Inexplicable VBA errors in formulas Dallman Ross Excel Discussion (Misc queries) 7 August 11th 07 12:32 AM
Checking excel for errors/inconsistencies markx Excel Worksheet Functions 1 February 23rd 05 03:13 PM
Errors in copying formulas Frequent_User Excel Discussion (Misc queries) 1 December 12th 04 12:00 AM
checking for errors in combobox's Bob C[_2_] Excel Programming 1 September 4th 03 09:03 PM


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