How to Create Date Time Picker in Excel VBA

Поделиться
HTML-код
  • Опубликовано: 21 сен 2024
  • How to Create Date Time Picker in Excel VBA, in this video tutorial you will learn how to create and customise Date Time Picker using UserForm, you will also learn how to add the Date Time Picker to the Ribbon using Macro. Excellent tutorial for all learners.
    Join this channel to get access to codes, perks, and see more interesting videos. / @djoamen
    To support more videos from this channel, visit the Paypal link below.
    www.paypal.me/...
    Correction: Double click on the CB_Mth ComboBox and add the following codes below:
    IF Me.CB_Mth.Value (Enter NOT = Symbol) " " And Me.CB_Yr.Value (Enter NOT = Symbol) " " Then
    Call Build_Calendar
    END if
    And repeat the same process for CB_Yr ComboBox copy and paste the codes above.
    Channel Members Download the Excel VBA Date Time Picker source codes here and modify them for their own personal use. Plus one other source code per month. Total - 2 Source codes Per Month, only:
    drive.google.c...

Комментарии • 24

  • @carlo9567
    @carlo9567 2 года назад +1

    Great job😃

    • @DJOamen
      @DJOamen  2 года назад +1

      Thank you! Cheers!

  • @coderabbi144
    @coderabbi144 2 года назад +3

    Thanks Captain. The missing code below works for both combox box CB_Mth and CB_Yr
    IF Me.CB_Mth.Value "" And Me.CB_Yr.Value "" Then
    Call Build_Calendar
    END if

    • @DJOamen
      @DJOamen  2 года назад

      You are welcome, and well done, bro

  • @sdpattern8449
    @sdpattern8449 Год назад +1

    Hello, If I changed the month from drop down then days are not changing in calender. It only shows current month days. Can you please help in getting it addressed

    • @DJOamen
      @DJOamen  Год назад

      See solution on the description

  • @miiihaaas
    @miiihaaas 3 года назад

    It will be nice to have possibility to select different cells in background without closing date picker...

    • @DJOamen
      @DJOamen  3 года назад

      In future your suggestion will be implemented

  • @carlo9567
    @carlo9567 2 года назад

    Hello.
    Can you help me with the following questions please:
    1. How to make a selected date appear in a Textbox or more located in a Userform?
    2. How to make Monday the first day of the week?
    3. How to display a French version of that Date Picker?

    • @DJOamen
      @DJOamen  2 года назад

      Watch my How to Create a Library Management System in Excel for details, of your answer. But as for the French version of that Date Picker, I can't help you.
      ruclips.net/video/4huISOeutvI/видео.html

    • @carlo9567
      @carlo9567 2 года назад

      @@DJOamen I will. Thank you

  • @raf4pt
    @raf4pt 2 года назад

    One more question please, is there a way to Hi-light today's D back color?

    • @DJOamen
      @DJOamen  2 года назад

      You can use a conditional statement (If Statement)

    • @raf4pt
      @raf4pt 2 года назад +1

      @@DJOamen I did thx.
      I used same White color If & modified it to be applied on Controls("D") for today, giving it a green background.
      Then I added:
      Private Sub Userform_Activate
      Call Build_Calendar
      End Sub
      so it can automatically show the day's color when I start the form.

  • @eduardopimenta8799
    @eduardopimenta8799 4 года назад

    Good afternoon teacher,
    I reviewed the entire video and all the code, but the calendar was missing when we changed the month and year in combobox.
    So what part of the code is this event in?

    • @DJOamen
      @DJOamen  4 года назад

      Form initialized

    • @eduardopimenta8799
      @eduardopimenta8799 4 года назад +1

      @@DJOamen Initialize only loads comboboxes, but when changing the month or year the days do not change.
      Should the month and year change, shouldn't the days change on the days of the week?

  • @sadiaalmamory1652
    @sadiaalmamory1652 4 года назад

    How to solve the problem of (culture) when we use date-time-picker

    • @DJOamen
      @DJOamen  4 года назад

      Change the program to meet your needs

  • @rishabpg977
    @rishabpg977 Год назад

    can i connect this to another userform

  • @raf4pt
    @raf4pt 2 года назад

    Changing the Month or the year doesn't change the days button!

    • @DJOamen
      @DJOamen  2 года назад +1

      See solution in the description

    • @raf4pt
      @raf4pt 2 года назад

      @@DJOamen thanks a lot, you are the best