+ Reply to Thread
Results 1 to 3 of 3

Row source using List with TODAY() function

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    SLC,Ut
    MS-Off Ver
    Excel 2010
    Posts
    15

    Row source using List with TODAY() function

    So I am currently working on a Userform that has two list boxes with the row source set to a list of values with TODAY Function. When I enter in the information it will put in the first date in just fine but will clear the cell where the second date is suppose to go. I know it has to do something with the Today function because if i just use a list of just dates it works fine. Is there something else I need to do? Here is the code so far.

    Please Login or Register  to view this content.
    and here is where I set the row source
    Please Login or Register  to view this content.
    The list is just TODAY(), TODAY()+1, etc 30 days worth

    If there is a better way of doing this I would really appreciate the help

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Row source using List with TODAY() function

    Is this solved?

    If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    SLC,Ut
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Row source using List with TODAY() function

    Good point! What I ended up doing is using VBA date function to add the dates to the listbox when the user form initialized.
    Please Login or Register  to view this content.
    If you want to add days instead of month then change "m" to "d".

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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