+ Reply to Thread
Results 1 to 11 of 11

date picker at multiple textbox

  1. #1
    Forum Contributor
    Join Date
    07-25-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    200

    date picker at multiple textbox

    Hello Everyone
    i have an userform, i can set date picker in only one TextBox, how can i set that date picker for other TextBox were required,

    TIA

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: date picker at multiple textbox

    define the code for each text box.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Contributor
    Join Date
    07-25-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    200

    Re: date picker at multiple textbox

    Dear Keebellah how can i do this? what will be the code to do this, can you tell me this in details,
    like for TextBox4, if i click TextBox4 then date picker show and after select a date it inputs on TextBox4,
    again if i click on TextBox7, date picker show but if i write date then it inputs on TextBox4 not in TextBox7,
    details plz to do this, tnx a lot

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: date picker at multiple textbox

    I don't have your code to see it here. But somewhere it tells you that the selected date is to be pasted someplace.
    Check the VBA code or the worksheet event. without the file ...

    The a look here or else Google for more.
    Guessing is for us no option for answres
    Last edited by Keebellah; 08-28-2019 at 06:36 AM. Reason: extra info

  5. #5
    Forum Contributor
    Join Date
    07-25-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    200

    Re: date picker at multiple textbox

    Hello
    Im using this date picker for textbox2 (DOB) only, how can i use this date picker for textbox3 aslo,

    TIA
    Attached Files Attached Files

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: date picker at multiple textbox

    I have not yet downloaded your file, but you use the same code in TextBox3 as you did in TextBox2.
    That is if you did it yourself, if your are just copying code and not taking the time to understand it, then VBA is probably more complicated for you than you first thought ?

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: date picker at multiple textbox

    You have to make some changes:

    in the Calendar form
    Please Login or Register  to view this content.
    You will have to add code that tells the calendar from which textbox you're calling

    and in Userform1 youhave to add this code
    Please Login or Register  to view this content.
    The important part is the commandbutton1_click

  8. #8
    Forum Contributor
    Join Date
    07-25-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    200

    Re: date picker at multiple textbox

    Dear Keebellah i know that "commandbutton1_click" is important and i don't know the code for that will tell "calendar from which textbox i'm calling and which textbox needs to place that date, and that's way i'm asking here for that, could u plz help me for that.

    Thanks

  9. #9
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: date picker at multiple textbox

    Did you edit the code you have yourself or was this just picked from the internet or another post?
    I'm asking this because I can tell you and do it for you but when you want to add a TextBox4 you will have the same problem, and you won't always have someone to do it for you
    I'll do it later but I'm just explaining the dependency on others that will create for yourself if you don't even try

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

    Re: date picker at multiple textbox

    Just returned from short holiday.
    I recognise this code
    Just anticipating next problem.
    You will notice the initialisation is set 2017 - 2030, to use beyond this range reset to your requirement.
    It was initially intended for Worksheet_Change event operation, not multiple textboxes, without further coding.
    This was initially used at a clients request, I personally prefer to steer clear of datepickers, preferring formatted textbox and speed number entry.
    torachan.

  11. #11
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: date picker at multiple textbox

    Yeah, I'm not a fan at all of date pickers.
    The OP will have to see if he/she can edit the code to make it work for other Textboexs, not that difficult, your code will do perfect, just requires a little imagination and perseverance and ... time, but it can be done

+ 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. Setting date picker date and having 2 columns to each date for excel calendar
    By bqheng in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-10-2017, 11:13 PM
  2. [SOLVED] date picker into multiple cells
    By Quicksnot in forum Excel General
    Replies: 7
    Last Post: 01-26-2017, 10:10 PM
  3. Simple Userform Textbox Date Picker
    By excel_joe in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2016, 09:16 AM
  4. [SOLVED] file-picker thinks it is a folder-picker if the folder picker runs first?
    By brucemc777 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-01-2016, 01:14 PM
  5. 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
  6. Add Date Picker To 2 Textbox In VBA UserForm2
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2014, 07:22 AM
  7. Add date picker to multiple cells
    By junada0 in forum Excel General
    Replies: 0
    Last Post: 02-19-2013, 02:19 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