Checking duplicate dates on workbook using a Userform

Kris75

Board Regular
Joined
Jul 29, 2009
Messages
143
Hi

I'm trying to create a holiday request card.
Sheet1 = Set up( name, team, email addresses)
Sheet2 = Leave request form
Sheet3 = a Log of all approved and Cancelled Dates

So far when inputting the the leave dates on the request form this will open a simple userform asking the user to confirm the requested dates ( txt_datefrom / txt_dateto) when clicking the command button this will send and email to an approver(identified in Sheet1) and write the dates in two columns on the Log(sheet3)

This all works great.


My managers now want me to include a peice of code that will check the requested dates in the two text boxes against those on the Log. if the dates on the user form are duplicates or fall within two time period on the log then a msg box pops up to inform the user that they have already done this.


I thought this would be simple but i cannot figure it out

Please help
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,203,238
Messages
6,054,312
Members
444,715
Latest member
GlitchHawk

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