+ Reply to Thread
Results 1 to 6 of 6

Auto fill consecutive dates across worksheets

  1. #1
    Registered User
    Join Date
    08-25-2016
    Location
    Earth, Sol
    MS-Off Ver
    2010
    Posts
    2

    Auto fill consecutive dates across worksheets

    Forgive me, programming was never my forte. Neither was explaining things.

    I plan to have 52 worksheets in this workbook with 7 cells (C10-I10) in a row listing the dates. Each subsequent sheet would have these rows listing the subsequent dates!

    For example, Sheet0 cell C10-I10 would be 1/1/2006, 1/2/2006, 1/3/2006, 1/4/2006, 1/5/2006, 1/6/2006, 1/7/2006

    Then on Sheet1, cell C10-I10 would be 1/8/2006, 1/9/2006, 1/10/2006, 1/11/2006, 1/12/2006, 1/13/2006, 1/14/2006 and so on across all the sheets.

    K6 and M6 would ideally follow a similar pattern on each sheet as well but it is not entirely necessary.

    Thank you in advance for reading this. Workbook is attached.

    Edit:
    Is there a VBA code for this?
    Attached Files Attached Files
    Last edited by unrefined; 08-26-2016 at 01:46 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Auto fill consecutive dates across worksheets

    Maybe a simple loop,

    Please Login or Register  to view this content.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Auto fill consecutive dates across worksheets

    You may try something like this....

    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Auto fill consecutive dates across worksheets

    If you don't want to create manually all 52 pages, you can start with your book having only sheet 0 and run the following.
    I've just modified a bit @ davesexcel 's code

    Please Login or Register  to view this content.
    Barriers are there for those who don't want to dream

  5. #5
    Registered User
    Join Date
    08-25-2016
    Location
    Earth, Sol
    MS-Off Ver
    2010
    Posts
    2

    Re: Auto fill consecutive dates across worksheets

    Oh my gosh! Thank you all so much, this is exactly what I needed! I've been looking for something similar to this all day you are life savers.

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,655

    Re: Auto fill consecutive dates across worksheets

    You're welcome. Glad we could help.
    Thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Auto-Fill Dates Across Multiple Worksheets
    By BanzaiGuy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-31-2019, 12:14 PM
  2. Need help with auto-filling dates in the future in consecutive columns
    By tarheelbobcat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2014, 10:25 PM
  3. Macro auto-fill: Blocks of consecutive decimal numbers with blank row in between them
    By markbs123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2014, 07:04 AM
  4. Replies: 17
    Last Post: 01-10-2011, 10:40 PM
  5. [SOLVED] Auto fill dates
    By Jennifer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2006, 03:50 PM
  6. How do I auto-fill dates that are not consecutive across a row?
    By paulfj@gmail.com in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-09-2006, 05:00 PM
  7. [SOLVED] How do I auto-fill consecutive dates ?
    By drschieff in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-18-2005, 07:06 PM

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