VBA User Forms videos | Excel VBA Forms Pt 4 - Validating Controls

Posted by Andrew Gould on 31 March 2016

Validation is all about making sure a user has entered sensible values in a control. This video shows you how to use the before- and afterupdate events of a textbox to prevent a user continuing when they've entered invalid data. You'll learn how to check if a value is a number or a date and how to modify the properties of controls at runtime to indicate that there's a problem.

This video has the following accompanying files:

File name Type Description
Profitable Films - Pt4 Validating Controls.xlsm Excel workbook with macros

Click to download a zipped copy of the above files.

Making a  video bigger

You can increase the size of your video to make it fill the screen like this:

View full screen

Play your video (the icons shown won't appear until you do), then click on the full screen icon which appears as shown at its bottom right-hand corner.

 

When you've finished viewing a video in full screen mode, just press the Esc key to return to normal view.

Improving the quality of a video

To improve the quality of a video, first click on the Settings icon:

Settings icon

Make sure you're playing your video so that the icons shown appear, then click on this gear icon at the bottom right-hand corner.

 

Choose to change the video quality:

Video quality

Click on Quality as shown to bring up the submenu.

 

The higher the number you choose, the better will be your video quality (but the slower the connection speed):

Connection speed

Don't choose the HD option unless you have a fast enough connection speed to support it!

 

Is your Wise Owl speaking too slowly (or too quickly)?  You can also use the Settings menu above to change your playback speed.

This page has 1 thread Add post
28 Jan 19 at 00:57

Hi Wise Owl,

Great training video as always - the best training videos bar none! Look forward to any future videos.

I wanted to ask if you also use 'KeyPress' and 'KeyDown' to validate controls and what your opinion is on using that method?

Thanks.

28 Jan 19 at 10:56

Thanks Michael, happy to hear that you've enjoyed the videos!

I'm afraid that I don't have any particular insight on the KeyPress and KeyDown events as I don't tend to use them.  To me it's always seemed like overkill to test each keypress for the systems that I've worked on!