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: 16
Default 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
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
Test an array to see if it is populated without an error Rich J[_2_] Excel Programming 8 June 28th 08 01:41 AM
Save using Macro but test to see if an error appears on spreadshee jfaz Excel Discussion (Misc queries) 1 September 18th 06 04:38 PM
Answer to: test/ hyperlink to an Error in a column nastech Excel Discussion (Misc queries) 3 August 14th 06 09:15 PM
Using Error Message as test Criteria Taru Excel Worksheet Functions 2 June 16th 06 05:49 PM
an error.type test Maileen Excel Worksheet Functions 0 June 23rd 05 07:56 AM


All times are GMT +1. The time now is 02:18 PM.

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"