+ Reply to Thread
Results 1 to 8 of 8

Userform auto fill dates in between

  1. #1
    Registered User
    Join Date
    10-07-2012
    Location
    lund
    MS-Off Ver
    Excel 2010
    Posts
    22

    Userform auto fill dates in between

    Hello!
    I am new to this with posting in forums, but I have got stuck right now.
    I have this Userform with alot of datepickers, these are for different periods.

    But i Want them to autofill the dates in between the dates I have choosen and transfer to the sheet example cell A1.
    I have tried so many different programing codes but not even got close. Is there some VBA encoding that can do this for me.?

    I am very greatful for the help, I have attached the file with the Userform (click the "button").

    Kindregards
    Henrik
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform auto fill dates in between

    Henrik

    Where do you want the dates to go?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-07-2012
    Location
    lund
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Userform auto fill dates in between

    Just into the sheet example "Sheet1" and into cell A1. It does not matter so much , what i am really seeking is if it is possible to fill in the "gaps" between the dates and transfer...
    many many thanks for you looking into this " Norie"

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform auto fill dates in between

    Henrik

    How can you store multiple dates in one cell?

  5. #5
    Registered User
    Join Date
    10-07-2012
    Location
    lund
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Userform auto fill dates in between

    Dear Norie!
    When I have filled in the first dates example 1 of May to 14 of May (dtpicker 1 and 2) then I would like the dtpicker 3 and 4 continue on next available row (15 of may to 12 of June for example), so the dates stay together..

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform auto fill dates in between

    Oh, so you want to start in A1 and fill down.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-07-2012
    Location
    lund
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Userform auto fill dates in between

    My god you are a genius!! Many many thanks "Norie" it works. I never thought it could do so complex things! THANK you so much!
    I actually have one more not in another workbook, if you could "work" your mastermind?!
    Once again many thanks!

  8. #8
    Valued Forum Contributor
    Join Date
    09-25-2011
    Location
    Eastbourne, England
    MS-Off Ver
    Excel 2010
    Posts
    1,089

    Re: Transfer dates to a column from different periods

    Hi Hep

    One way will be to insert all the dates that you need (Quick tip, go to the last date that you have, Highlight as many cells as you want to fill and press Alt + E, then i then s. All your dates will be entered.)

    Then in B16 enter
    Please Login or Register  to view this content.
    Copy and paste down to the end of your dates (Quick tip - Hover over the lower right corner of B16 until your cursor is a +. Double click. This will send the formula down to the bottom of your data.

    Job done

    Regards
    Alastair

+ 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