VBA code to generate a user form when an entered date is between two dates

benhop

New Member
Joined
Nov 18, 2008
Messages
35
Hi all,

I'm trying to figure out how to call a user form when a user enters a date
that falls in between two dates in two separate ranges within a single row. I'm thinking this might be VBA code in an If-Then type format, such as "If a cells value is greater than E4 and less than AN 4 then userform1.show." Of course, I'd like that translated through proper VBA coding. Can anyone help with this request? Thanks.

Benhop.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,190,677
Messages
5,982,211
Members
439,768
Latest member
loukrs

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
Top