+ Reply to Thread
Results 1 to 6 of 6

Add date to useform textbox rather than sheet cell.

  1. #1
    Registered User
    Join Date
    05-31-2014
    Location
    New Zealand
    Posts
    31

    Add date to useform textbox rather than sheet cell.

    Hi Forum,

    I have a userform with a button on to activate a calendar, this works fine for reporting to a cell in a worksheet. but how do i get it to report to a textbox in the same userform, I have tried variations of the code below. The txtbox is called TXTDateAdded. Any hints or tips for me to correct/ work out the things i'm missing would be great.

    cheers Mark


    Please Login or Register  to view this content.
    This code below work fine and reports to cell a2

    Please Login or Register  to view this content.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Add date to useform textbox rather than sheet cell.

    Hi tintin007

    Please attach a sample workbook the Structure of which is the same as your actual workbook.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    INCLUDE ANY CODE YOU'RE USING OR HAVE TRIED.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    John

    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.

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,613

    Re: Add date to useform textbox rather than sheet cell.

    CalenderForm is a utility from: http://forum.chandoo.org/threads/ful...-picker.19508/

    Please Login or Register  to view this content.
    Last edited by protonLeah; 09-27-2015 at 05:55 PM.
    Ben Van Johnson

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Add date to useform textbox rather than sheet cell.

    @protonLeah

    I've not seen this one before...thanks for the heads up.


  5. #5
    Registered User
    Join Date
    05-31-2014
    Location
    New Zealand
    Posts
    31

    Re: Add date to useform textbox rather than sheet cell.

    Mark Stock Database New REV1.xlsmHi @ protonLeah,

    Your suggestion works a treat, I chaned my line based on your example to
    Please Login or Register  to view this content.
    and removed the line
    Please Login or Register  to view this content.
    . I kept the next lines as these made the calendar look how i want it
    Please Login or Register  to view this content.
    Included workbook in case its of use to anyone else

  6. #6
    Registered User
    Join Date
    05-31-2014
    Location
    New Zealand
    Posts
    31

    Re: Add date to useform textbox rather than sheet cell.

    Oh and thanks for your assistance

+ 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. [SOLVED] userform textbox to date vale in sheet
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-09-2014, 01:57 PM
  2. [SOLVED] Userform textbox date sorting problem in main sheet
    By amoxia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-14-2014, 09:28 PM
  3. Userform textbox & sheet cells date format do not match
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2014, 12:56 PM
  4. [SOLVED] date format changes from listbox and textbox on same sheet
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2013, 03:00 PM
  5. VLookup to populate useform textbox
    By Einstahb in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-07-2011, 10:38 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