+ Reply to Thread
Results 1 to 5 of 5

populate date in textbox when write part of date

  1. #1
    Forum Contributor
    Join Date
    05-25-2022
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    225

    populate date in textbox when write part of date

    Hi guys ,
    I search for code to populate date in textbox after write part of date, for instance
    if I write day (D) then will populate slash after day for instance write (D)=01 then become 01/ and when write month (M) after slash will populate slash and current year for instance write month (M)=01 t,hen will become 01/01/2023
    I want to do that in change_event in textbox1
    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: populate date in textbox when write part of date

    Hi abdo M,

    Try below code
    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2016
    Posts
    949

    Re: populate date in textbox when write part of date

    from nankw83 with year

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    05-25-2022
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    225

    Re: populate date in textbox when write part of date

    @nankw83
    thanks
    but also should add the current year automatically after fill month .

  5. #5
    Forum Contributor
    Join Date
    05-25-2022
    Location
    Asia
    MS-Off Ver
    2019
    Posts
    225

    Re: populate date in textbox when write part of date

    @k1dr0ck
    perfect !
    this what I want it .
    many thanks buddy .

+ 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. If textbox date is > than another textbox date. Not working properly
    By enmac75 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-29-2021, 12:33 PM
  2. How to write macro to send email when date is matching with current date
    By gunanidhi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2016, 02:16 AM
  3. [SOLVED] VBA Code assistance to populate textbox with lookup sales total via date pickers
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-11-2016, 09:30 AM
  4. How can I use the date picker tool to populate a textbox in a userform
    By Mad Moose in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-09-2015, 04:44 PM
  5. Populate data in Textbox when select date on calendar
    By imzhakmaya in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2014, 05:39 AM
  6. Replies: 1
    Last Post: 05-26-2014, 03:46 AM
  7. Replies: 2
    Last Post: 10-06-2013, 02:03 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