Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Tricky problem in Data validation - Excel 2003


I've created an excel file in Excel 2003 for data entry by the bank
users and included some validation like max length, drop-down box, etc.

There are certain columns which are mandatory, how can i enforce that a
cell is not left blank?
How can i force that data entered is numerical only?

Any help will be greatly appreciated.

Thanks,
Sharath


--
smadhuranath
------------------------------------------------------------------------
smadhuranath's Profile: http://www.excelforum.com/member.php...o&userid=36470
View this thread: http://www.excelforum.com/showthread...hreadid=562347

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default Tricky problem in Data validation - Excel 2003


There are certain columns which are mandatory, how can i enforce that a
cell is not left blank?


With a change event:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 2 Then '2 for column B, CHANGE as necessary
If IsEmpty(Target) Then
MsgBox "Mandatory!"
Application.EnableEvents = False
Target.Select
Application.EnableEvents = True
End If
End If
End Sub

How can i force that data entered is numerical only?

select say column B,
Validation/Custom/Formula: =ISNUMBER(B1)

Regards,
Stefi

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Sharing read-write Excel 2003 files ttt8262 Excel Discussion (Misc queries) 0 April 1st 06 09:39 PM
issue with excel 2003 data import LNguyen Excel Discussion (Misc queries) 0 December 8th 05 07:42 PM
Case Sensitivity problem with data validation Upya Excel Worksheet Functions 3 October 7th 05 01:30 AM
Excel 97 chart opened in Excel 2003 - Source Data problem DHunt Charts and Charting in Excel 0 December 6th 04 08:05 PM


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