+ Reply to Thread
Results 1 to 6 of 6

Dates on a Schedule

  1. #1
    Registered User
    Join Date
    11-17-2007
    Posts
    28

    Dates on a Schedule

    I would like to have cells that I could put the Start and end dates of a schedule in and have the dates prepopulated and formatted at the top of the schedule automatically.

    I was thinking it should be a template with 1 default week, put in the start and end dates and copy the 7 days for the duration of weeks needed. It must include and copy the formulas at the bottom of the spreadsheet also that have different formulas for weekends and weekdays.

    This will always start on a Sunday and end on a Saturday and be full weeks.

    Attached is a sample of what I am looking to do, if it can be done.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Here is what I came up with. There is code in the Sheet1 module, as well as a general module. This will trigger if you make a change to either the begin or end date. Let me know how it works out.

    Jason
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-17-2007
    Posts
    28
    Oh YES, you are a genius. Thank you very much. This is exactly what I was looking for.

    I have 1 more question about this, how do I put this into another existing worksheet?

    Thanks

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Glad it helped.

    If you want it to work on a different sheet, you need to tell it which worksheet to manipulate. So you would change the following line:
    Please Login or Register  to view this content.
    You can also set up the code to work on the active sheet, as long as each sheet is set up identically, by changing the above to:
    Please Login or Register  to view this content.
    HTH

    Jason

  5. #5
    Registered User
    Join Date
    11-17-2007
    Posts
    28
    Thanks,


    Then just insert the code using the VB editor to place it in the Sheet1 module, as well as a general module. Right?

  6. #6
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Yes, as long as the sheets are set up identically, then the code should work.

+ 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