+ Reply to Thread
Results 1 to 7 of 7

How to add Date pick in VBA userform

  1. #1
    Registered User
    Join Date
    04-22-2024
    Location
    Liberia
    MS-Off Ver
    365
    Posts
    3

    How to add Date pick in VBA userform

    Hello out there,

    I have been trying to insert date field in office 365 excel VBA user form.
    kindly help me resolve this issue.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: How to add Date pick in VBA userform

    Download this file for an example.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    04-22-2024
    Location
    Liberia
    MS-Off Ver
    365
    Posts
    3

    Re: How to add Date pick in VBA userform

    Thanks but, I want to use it in VBA user form.

  4. #4
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,957

    Re: How to add Date pick in VBA userform

    That file has example code for a VBA userform option.

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: How to add Date pick in VBA userform

    Try the attached approach - the user-form is launched by the 'Push Me' button - on the form there are a couple of date fields - click into these and a calendar will appear, choosing a date places the date in the textbox.
    The full code for the calendar is included and choice is controlled in the Class Module.
    I have attached the code also in a PDF where the code flow is better illustrated and incorporation of other features of the user-form may be of assistance.
    Attached Files Attached Files
    Torachan,

    Mission statement; Promote the use of Tables, Outlaw the use of 'merged cells' and 'RowSource'.

  6. #6
    Registered User
    Join Date
    04-22-2024
    Location
    Liberia
    MS-Off Ver
    365
    Posts
    3

    Re: How to add Date pick in VBA userform

    Hello thanks you all for replying to my thread. After day of researching, I was able to create a date pick calendar using VBA form. But, the issue now is how to link that calendar to my main application form to enable user to pick a date from the calendar. I need your help please.

  7. #7
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,305

    Re: How to add Date pick in VBA userform

    There are several ways to do this - the tedious long way of naming all your buttons OR the more simple way as per my post #5.
    If you upload your your creation I will show you how - far easier to demonstrate than writing an essay on how and why.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [U]Filter Data by Upload date, and pick the record for the latest date[/U]
    By faizanahmad in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 01-23-2024, 12:07 PM
  2. Using a pre-built calendar userform to pick dates
    By peterchclarke in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-21-2019, 08:18 AM
  3. [SOLVED] Userform (Browse & pick PDF file, save it)
    By rizkifatah in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-19-2019, 12:11 AM
  4. Pick date, search matching date in table en show row in userform
    By jonas-martens in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2017, 11:41 AM
  5. Create userform that allows user to pick a color, then have macro reference the color pick
    By submariner18 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2013, 05:04 PM
  6. how to force a date field to be entered so my pop up calendar appears to pick date
    By cmwilbur in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-29-2010, 10:19 AM
  7. [SOLVED] RefEdit on Userform to pick up range in another workbook
    By jase in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-02-2005, 12:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1