#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Error Message Box

I want to write a if function that would tell the user using a message box
that an incorrect type has been entered. For example, the correct type is a
number not a letter or anything else. I want the function to post error
message if it is the wrong type and leave the input in the cell if everything
is OK.
--
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default Error Message Box

Instead of resorting to a function, why not use Data Validation on the cell?
Data/Validation/Allow Custom, enter this formula (substitute the active cell
for A1 in the following)
=NOT(ISERROR(1*A1)) then click the Error Alert tab and enter the appropriate
message.
Bob Umlas
Excel MVP

"Daviv" wrote:

I want to write a if function that would tell the user using a message box
that an incorrect type has been entered. For example, the correct type is a
number not a letter or anything else. I want the function to post error
message if it is the wrong type and leave the input in the cell if everything
is OK.
--
Thanks!

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



All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"