+ Reply to Thread
Results 1 to 5 of 5

code to connect textbox1.text with calendar control selection

  1. #1
    Registered User
    Join Date
    08-14-2011
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    22

    code to connect textbox1.text with calendar control selection

    On the userform of a workbook, I placed a Textbox and also a Calendar Control. Pls suggest me the code to transmit the selected date in Calendar control tool to the Textbox1.

    Thanks in advance.

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: code to connect textbox1.text with calendar control selection

    hi,
    see if the teh Roy's calendar helps you.
    Attached Files Attached Files
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: code to connect textbox1.text with calendar control selection

    You could adapt that code for an activeX calendar control, but the main reason for building the userform is that not all computers calendar control is not available on all computers
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    08-14-2011
    Location
    india
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: code to connect textbox1.text with calendar control selection

    yes sir, i too observed it now. is there any solution. Actually in Visual Basic, if we made a project into package, all the controls will be worked on the installed PC even it wont have that facility. Is there any way like in excel also ?

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: code to connect textbox1.text with calendar control selection

    Not in Excel, maybe VB.Net.

    As I said that is why I created a userform version

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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