+ Reply to Thread
Results 1 to 11 of 11

Calendar Control Text box input

  1. #1
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Angry Calendar Control Text box input

    Hi all,

    As you can see from the .jpg I have a userform with a text box and command button.

    I have a separate userform with a calendar already prepared. I have coded the button to show the calendar when selected. ( frmCalendar.Show)

    All I need now is that when a date is selected then the date is placed into the text box. What command would I use?
    Attached Images Attached Images

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

    Re: Calendar Control Text box input

    Without the workbookit'sdifficult to say,something like
    Please Login or Register  to view this content.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Re: Calendar Control Text box input

    Thanks for that but I'm a little confused still.

    Does that code go in the text box?

    Let me give you the names of my user forms:

    Calendar - frmCalendar
    Main form with text box and button - frmConfig
    text box for date: txtDate
    button to show calendar - btnDate

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

    Re: Calendar Control Text box input

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  5. #5
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Red face Re: Calendar Control Text box input

    Hey royUK,

    You're right and sorry. Maybe this will make a bit more sense
    Attached Files Attached Files

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

    Re: Calendar Control Text box input

    In the Calendar Form

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Re: Calendar Control Text box input

    THANK YOU! Thank you for being patient, thank you.

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

    Re: Calendar Control Text box input

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  9. #9
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Exclamation Re: Calendar Control Text box input

    Thank you again however I have an additional and KEY issue with this. The format it delivers is in mm/dd/yyyy. It's essential I get dd/mm/yyyy.

    Can you look at the original attached and help me, please? It's really important. I tried googling it but coudn't find a helpful answer.

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

    Re: Calendar Control Text box input

    Try this
    Please Login or Register  to view this content.
    If you are writing to the sheet later then you will need to use the Format method

  11. #11
    Forum Contributor
    Join Date
    04-08-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2003
    Posts
    228

    Re: Calendar Control Text box input

    You might have just saved my job...


    You guys are great for doing these things. Thank you so very much for your help. You've made my day.

+ 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