Forum     

Go Back   Digit Technology Discussion Forum > Software > Software Q&A
Register FAQ Calendar Mark Forums Read

Software Q&A Having trouble with software? Find solutions here


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 22-02-2009, 11:28 AM   #1 (permalink)
Wise Old Owl
 
Cool Buddy's Avatar
 
Join Date: Mar 2006
Location: Milky way
Posts: 1,487
Default VB in Excel


is it possible to perform data validation in excel through VB. If so how.

This is what I need to do:
if a cell's (say d6) value is greater than 50, generate a message saying that maximum value permitted is 50.
if the product of this cell and another cell (say d7) exceed 600, generate a message saying that this value cannot be entered.
__________________
Digital Sheets Technology Blog
AMD Phenom II X4 840, 4 GB RAM, MSI HD5670, Corsair CX400 PSU :)
Nokia 5230 :(
Canon IXUS 115 HS :)
Cool Buddy is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-02-2009, 02:45 PM   #2 (permalink)
The Researcher
 
Join Date: Mar 2006
Location: Mumbai
Posts: 1,122
Default Re: VB in Excel

I don't know much about VB, but through excel's menu system this can be done. data>validation>allow>whoole number>between>enter the setting here. you can enter the error message the user will get if he enters wrong number say 51, in the error alert tab. This is very easy to do.



[img=http://img100.imageshack.us/img100/4623/validation2.th.jpg]

more here

http://www.contextures.com/xlDataVal06.html#Whole
Ramakrishnan is offline  
Old 23-02-2009, 03:23 PM   #3 (permalink)
Wise Old Owl
 
Cool Buddy's Avatar
 
Join Date: Mar 2006
Location: Milky way
Posts: 1,487
Default Re: VB in Excel

yes this is really easy, but I knew this. If you look at my question closely i want to generate 2 error messages for different values, this is not possible through data validation.
__________________
Digital Sheets Technology Blog
AMD Phenom II X4 840, 4 GB RAM, MSI HD5670, Corsair CX400 PSU :)
Nokia 5230 :(
Canon IXUS 115 HS :)
Cool Buddy is offline  
Old 23-02-2009, 03:48 PM   #4 (permalink)
Pat
Member of Apple Family
 
Pat's Avatar
 
Join Date: Nov 2007
Location: Mumbai
Posts: 1,374
Default Re: VB in Excel

Yes, take a look at Macros. Should not be too difficult..
Pat is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
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
help in excel !! ayush_chh Software Q&A 3 06-11-2007 07:15 PM
How to do do this in Excel. casanova Software Q&A 8 29-09-2007 11:29 AM
need excel help anandk Software Q&A 3 07-08-2007 11:31 PM
Learn Excel from Mr. Excel Ramakrishnan Software Q&A 1 25-12-2006 08:27 PM
EXCEL hunt Software Q&A 4 01-10-2005 08:04 AM

 
Latest Threads
- by gohan89
- by icebags

Advertisement




All times are GMT +5.5. The time now is 07:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2