Solved

Data Validation - does it carry over to form created via Excel not VBA Editor?

Posted on 2014-01-27
8
398 Views
Last Modified: 2014-01-31
Been asked some questions about form creation. I have someone who wants her data entered in a particular way. e.g dates only to be entered in a certain way etc. So assuming that is set up via Data Validation - does that carry over to a form entered instantly (via the Form icon in New Excel) .
Or would she be better off creating it via User Forms in VBA Editor (bearing in mind she has no VBA experience?
Thanks as always..
0
Comment
Question by:agwalsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
8 Comments
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 167 total points
ID: 39811698
Data Validation (via the button in the Data Tools group on the Data tab) is independent of VBA as User forms.

If the requirements can be met with this, then go for that.  Only use VBA if the need is very complex.

If a new workbook is created from the original, then any such validation and also any VBA in the original will be carried over to the new one.
0
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 333 total points
ID: 39811712
I don't believe Graham's answer addresses your question.

You have a list of data which includes a date field which has Data Validation (DV) set to allow only entry of a date.

You have implemented the standard built in Form option for ease of entering new data and want to know if the DV is included on the Form.

Strictly speaking the answer is no. However, if the column of data for the dates already has the DV set then the entry from the form input will be rejected if it isn't a valid date.

Therefore, the way round is to ensure that the DV settings are continued down the column beyond the existing entry.

Thanks
Rob H
0
 

Author Comment

by:agwalsh
ID: 39811786
OK, so the answer is that Yes, the form can be implemented and yes the data validation will carry over - as long as it's copied down for as many rows as the user thinks data entry will be required. Will the input messages/error alerts still work?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 33

Expert Comment

by:Rob Henson
ID: 39811799
Input Messages - no I don't believe so.

Error Messages - Yes they still show, the form is trying to "pass" an entry to the sheet and if that entry is invalid then the error message will be triggered.

Thanks
Rob H
0
 
LVL 76

Expert Comment

by:GrahamSkan
ID: 39811810
I'm less sure that I fully understand your question, but to be specific, any UserForms and their code will carry over when whole new workbook is created from the original.

Copying and pasting areas of a sheet won't copy user forms, but any data validation in the copied cells will be copied via a copy and standard paste.
0
 

Author Comment

by:agwalsh
ID: 39811841
So here's what I'm thinking..
someone has a spreadsheet set up - complete with headings etc.
Data Validation is applied to a range underneath those headings.
To facilitate data entry a form is created (using the Forms icon from the QAT) - is it true to say that the data validation settings will carry over to that form complete with error messages e.g. "this entry is a duplicate - please enter a unique value" sort of thing...?? thanks
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 333 total points
ID: 39811851
Graham,

User is using the Standard Data form not a User Form and is not creating a new file only entering new data into an existing list.

Form icon is not visible in default Data Toolbar but I have just added it through the Customise ribbon options.

To get the form to show without the button, the old fashioned keyboard shortcut is "Alt+D+O" when cursor is in the data list. It creates a simple input form using the header row as field names and the sheet name as the Form name.

Question is, when using this form does the Data Validation on the sheet get applied to the entries via the form. The answer is yes, the form tries to pass an entry to a DV restricted field so the entry has to match the DV requirements.

For the input message, if the cursor is in a cell which has the DV rule set, the input message will show. This message stays visble when the form appears.

Thanks
RH

EDIT to last line:

...if the cursor is in a cell which has the DV rule set, prior to the Form being invoked,
0
 

Author Closing Comment

by:agwalsh
ID: 39823366
Did the job...thank you :-)
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question