Does anyone know if taking he value of the cell as text as they did here:
http://www.excelforum.com/showthread.php?t=611166
would work?
Does anyone know if taking he value of the cell as text as they did here:
http://www.excelforum.com/showthread.php?t=611166
would work?
Look at VB Help under Cell Error Values, where the following appears:
This example displays a message if the active cell on Sheet1 contains a cell error value. You can use this example as a framework for a cell-error-value error handler.
![]()
Worksheets("Sheet1").Activate If IsError(ActiveCell.Value) Then errval = ActiveCell.Value Select Case errval Case CVErr(xlErrDiv0) MsgBox "#DIV/0! error" Case CVErr(xlErrNA) MsgBox "#N/A error" Case CVErr(xlErrName) MsgBox "#NAME? error" Case CVErr(xlErrNull) MsgBox "#NULL! error" Case CVErr(xlErrNum) MsgBox "#NUM! error" Case CVErr(xlErrRef) MsgBox "#REF! error" Case CVErr(xlErrValue) MsgBox "#VALUE! error" Case Else MsgBox "This should never happen!!" End Select End If
FrankBoston is the pen name for Andrew Garland, Lexington MA
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks