+ Reply to Thread
Results 1 to 2 of 2

Entering a date into a userform textbox

  1. #1
    Forum Contributor
    Join Date
    03-13-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2007
    Posts
    136

    Entering a date into a userform textbox

    How do I let my program know that the user is going to input a date into a textbox? The objective is to calculate portfolio returns but cashflows in and out of the portfolio are weighted by the number of days that they were in the portfolio which means I need to be able to subtract two dates to give me the number of days. When the user inputs something like "11/25/2009" there doesn't seem to be a way to let the userform know that this is in date format rather than just a literal string.

  2. #2
    Registered User
    Join Date
    12-27-2009
    Location
    Paris, France
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Entering a date into a userform textbox

    Hello,

    Create a UserFom1 with CommandButton1 and TextBox1.
    Copy the following code

    Please Login or Register  to view this content.
    Best regards.

    PMO
    Patrick Morange

+ 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