+ Reply to Thread
Results 1 to 2 of 2

How to create Macro that will auto populate the next 7 days

Hybrid View

  1. #1
    Registered User
    Join Date
    12-29-2015
    Location
    USA
    MS-Off Ver
    2013
    Posts
    5

    How to create Macro that will auto populate the next 7 days

    Hi everyone,

    I have a workbook in Excel 2013 whose sheets I print off once a week. The only data that changes on the sheets is the dates. For example, Cells A5 - A12 have 1/1/16 through 1/7/16 on them. With a macro or VBA, can I get those cells to automatically populate the next 7 days?

    Griffin

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to create Macro that will auto populate the next 7 days

    Do you really need VBA? A formula takes care of every cell except the first.

    A5 - starting data. You could use a TODAY() formula like
    =TODAY() (shows today's date automatically)
    =TODAY()+1 (shows tomorrow's date automatically)

    Then in A6:
    =A5+1

    Copy A6 down to complete the week.

    So only need to update A5 and print.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Create Calendar and auto-populate with Excel Data
    By mabesser in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-10-2015, 05:06 PM
  2. Replies: 1
    Last Post: 08-20-2013, 06:50 AM
  3. Replies: 2
    Last Post: 07-31-2013, 02:00 PM
  4. Replies: 4
    Last Post: 05-02-2013, 04:39 PM
  5. How to Create a Dependent Field That Will Auto-Populate--is this possible?
    By cpalmer72 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-20-2012, 02:19 PM
  6. [SOLVED] help!! Need Sheet2 to auto populate with dates that are today's date or 90 days out
    By JennK in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2012, 07:33 PM
  7. Gantt chart auto populate Help -days between weeks
    By omneo in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 06-08-2010, 06:59 AM

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