Conditional Formatting Forms

dualhcsniatpac

Board Regular
Joined
Feb 18, 2009
Messages
126
I have seen this on the net somewhere but I have been searching for the past 20 min and cant seem to find it again. I am looking to have my VBA code double check an input from my form. For example, when the form is submitted I want it to check all of the fields to see if they comply with the format that I want them .

Time will be in the format (military) - "0000 - 2400" Is the best way to do this by case??? (Is there a way to specify that the 2 last numbers must be between 00-59??)

Also what are the commands for taking someone back to the form itself. I was thinking about just a popup window.

Thanks any help will do
 
Last edited:

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Bump for something?

This is kinda what I have so far and I dont even know if I am close or not.

Code:
If coverunit.Value = ""
    End Sub
Else
    ActiveCell.Offset(0, 2) = coverunit.Value
 
Last edited:
Upvote 0

Forum statistics

Threads
1,196,229
Messages
6,014,125
Members
441,802
Latest member
rhinab

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top