Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I never suggest using Textboxes or Inputboxes to accept dates. So many things can go wrong. I cannot even suggest using the Calendar Control or the Date Picker as for that you need to register the mscal.ocx or mscomct2.ocx and that is very painful as they are not freely distributable files.</p> <p>Here is what I recommend. You can use this custom made calendar to accept dates from the user</p> <p><strong>PROS</strong>:</p> <ol> <li>You don't have to worry about user inputting wrong info</li> <li>You don't have to worry user pasting in the textbox</li> <li>You don't have to worry about writing any major code</li> <li>Attractive GUI</li> <li>Can be easily incorporated in your application</li> <li>Doesn't use any controls for which you need to reference any libraries like mscal.ocx or mscomct2.ocx</li> </ol> <p><strong>CONS</strong>:</p> <p>Ummm...Ummm... Can't think of any...</p> <p><strong>HOW TO USE IT</strong></p> <ol> <li>Download the <code>Userform1.frm</code> and <code>Userform1.frx</code> from <a href="https://www.dropbox.com/s/f1gzv52mmi6mvt2/Calendar%20Userform.zip?dl=0" rel="noreferrer">here</a>.</li> <li>In your VBA, simply import <code>Userform1.frm</code> as shown in the image below.</li> </ol> <p>Importing the form</p> <p><img src="https://i.stack.imgur.com/HBMTb.png" alt="enter image description here"></p> <p><strong>RUNNING IT</strong></p> <p>You can call it in any procedure. For example</p> <pre><code>Sub Sample() UserForm1.Show End Sub </code></pre> <p><strong>SCREEN SHOTS IN ACTION</strong></p> <p><img src="https://i.stack.imgur.com/WrgI5.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload