+ Reply to Thread
Results 1 to 3 of 3

Updating cells Q1 and R1 with start and end dates selected in a userform

  1. #1
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Updating cells Q1 and R1 with start and end dates selected in a userform

    Hello all,
    I need some assistance taking dates entered in a userform and applying them to the sheet 'Completed_Report' cells Q1 and R1. The userform code that stores the input values is:

    Please Login or Register  to view this content.
    The start date selection is stored as 'txtInput.Text' and the end date is stored as 'txtInput2.Text'. Those 2 values are then converted to date format and stored in 'dtselect1' and 'dtselect2' respectively. I need sheet 'Completed_Report' cells Q1 and R1 to reflect these dates.

    Thanks for your assistance!!

    Andrew
    Last edited by drewship; 06-01-2009 at 07:14 AM.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Updating cells Q1 and R1 with start and end dates selected in a userform

    Please Login or Register  to view this content.
    I also recommend something like this:
    Please Login or Register  to view this content.
    Also, when using dates, convert the textbox strings to dates with CDATE() or convert them to dates by parsing the string for DATESERIAL(). Put this numeric value into your ranges instead of a date string. You can always add .NUMBERFORMAT to your range. e.g.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    04-30-2009
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    496

    Re: Updating cells Q1 and R1 with start and end dates selected in a userform

    That worked!!! Thanks so much for all your help and information!!

    Andrew

+ 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