Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Test for Error in cells
I am trying to test for letters or numbers within a cell. I cannot get the Iserror to work correctly, nonerror is ok, but if it is an error, i cannot get True, i get a VBA error. Can someone please help? a1$ = Mid(Range("a1").Text, 2, 1) b1$ = Mid(Range("b1").Text, 3, 1) If IsError(a1 * b1) Then MsgBox "error" Else: MsgBox "nonerror" End If |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Test an array to see if it is populated without an error | Excel Programming | |||
Save using Macro but test to see if an error appears on spreadshee | Excel Discussion (Misc queries) | |||
Answer to: test/ hyperlink to an Error in a column | Excel Discussion (Misc queries) | |||
Using Error Message as test Criteria | Excel Worksheet Functions | |||
an error.type test | Excel Worksheet Functions |