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: 72
Default How to create a MsgBox to alert user an invalid entry has been mad

I have built a User Form that asks for an employee ID number to be entered.
That data then goes to cell A2 on the spreadsheet. Cell A1 has a VLOOKUP
formula that goes to another sheet and finds that employee ID number and
returns the name to cell A1. If it can't find the ID number then #N/A
returns in cell A1.
I want to create a message box that will pop up after the user types an
invalid number in the User Form indicating "Invalid Employee Number".

How can I do that? Also, I know this sound s extremely simple, but being
new to this I am unsure. The code for the above message box, where do I
insert that? I assume in the code for the User Form?

Thanks so much for any assistance!
Tim
 
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
error alert for invalid date nader Excel Worksheet Functions 2 April 27th 10 11:51 AM
Error Alert for Invalid Data doesn't work for data selected in col genegal Excel Worksheet Functions 0 January 25th 10 04:17 AM
How do I add an alert message upon a user closing the workbook? ehoskins Excel Discussion (Misc queries) 1 July 12th 06 10:48 PM
Can Excel alert me to a duplicate entry? PeterM Excel Discussion (Misc queries) 2 December 20th 05 08:18 PM
Data Entry Alert in User Form Kev Excel Discussion (Misc queries) 6 January 8th 05 03:01 PM


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