PC Review


Reply
Thread Tools Rate Thread

Check Validation via Excel VBA code.

 
 
Seema
Guest
Posts: n/a
 
      8th Jul 2008
Hi All

I have created employee template to be distributed to all my company
officess in my country. Each of the office need to fill the employee info.

I have created a button to validate all data like emp code, date, email ids,
etc. via VBA code.After entering all data, they need click on this button to
check data validation for no errors.

There is one colum Department, where i have given validation list in excel
to select respective Department. But if the user copy and paste data in the
template, the validation allows to paste those department not in the
validation list.

How to catch this as an error using VBA code on my macro button itself??

Thanks
Regards
Seema
 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      8th Jul 2008
have your code check the entry against a list of valid departments.

--
Regards,
Tom Ogilvy


"Seema" wrote:

> Hi All
>
> I have created employee template to be distributed to all my company
> officess in my country. Each of the office need to fill the employee info.
>
> I have created a button to validate all data like emp code, date, email ids,
> etc. via VBA code.After entering all data, they need click on this button to
> check data validation for no errors.
>
> There is one colum Department, where i have given validation list in excel
> to select respective Department. But if the user copy and paste data in the
> template, the validation allows to paste those department not in the
> validation list.
>
> How to catch this as an error using VBA code on my macro button itself??
>
> Thanks
> Regards
> Seema

 
Reply With Quote
 
Seema
Guest
Posts: n/a
 
      9th Jul 2008
Thanks Tom for willing to help me.

No.

How to check that using VBA Code? I am not able to write that code to cross
check the entry against the validation list. Please help me..

"Tom Ogilvy" wrote:

> have your code check the entry against a list of valid departments.
>
> --
> Regards,
> Tom Ogilvy
>
>
> "Seema" wrote:
>
> > Hi All
> >
> > I have created employee template to be distributed to all my company
> > officess in my country. Each of the office need to fill the employee info.
> >
> > I have created a button to validate all data like emp code, date, email ids,
> > etc. via VBA code.After entering all data, they need click on this button to
> > check data validation for no errors.
> >
> > There is one colum Department, where i have given validation list in excel
> > to select respective Department. But if the user copy and paste data in the
> > template, the validation allows to paste those department not in the
> > validation list.
> >
> > How to catch this as an error using VBA code on my macro button itself??
> >
> > Thanks
> > Regards
> > Seema

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add ing validation in Excel code donsls Windows XP 0 31st Oct 2008 03:18 PM
Code to check errors in excel 2002 Redan Microsoft Excel Programming 6 28th Jan 2008 05:37 PM
In Excel data validation what is purpose of ignore blank check bo =?Utf-8?B?Y2hoYXlh?= Microsoft Excel Crashes 1 22nd Feb 2007 11:34 PM
check excel country code =?Utf-8?B?TWFpaw==?= Microsoft C# .NET 2 2nd Jun 2005 12:57 PM
CODE FOR CHECK BOXES, AND EXCEL AS ATTACHMENT ! jay dean Microsoft Excel Programming 3 26th May 2004 09:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:46 AM.