Load Week Ending Date From Numbers List

  • Hi All


    I have a list of entrys (41 in total so far) from cell A1 down starting with the value 1. This entry represents the week ending 04/06/06. ie each entry represents a date for the week ending. So cell A2 will contain the no 2 and represent the week ending 11/06/06. Cell A3 will contain the no 3 and represent the week ending 18/06/06. It goes in order right down to number 41.


    I have a userform, what I want to do is have a combobox load all the entrys in as dates, not as the entry no. Then when I choose a week in the combobox it will load the appropriate entry no into another textbox?


    I dont want to add the dates to the spreadsheet.


    Simple? not for me!


    All Help Appreciated.

  • Re: Load Week Ending Date From Numbers List


    Reafidy,



    Need an explanation?


    G.

  • Re: Load Week Ending Date From Numbers List


    Hi G,


    Excellent, I understand your code perfectly.


    However the hard part for me is that when updating the combobox, I want the entry no. (some number between 1 to 41) to appear in the textbox not the date.


    Thanks.

  • Re: Load Week Ending Date From Numbers List


    Reafidy,



    Note that this is Zero based.
    i.e. add 1 to it.


    Edit: Previous answer only accommodated consecutive weeks in your list.
    G.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!