+ Reply to Thread
Results 1 to 4 of 4

vba code to generate 60 rows of months

  1. #1
    Registered User
    Join Date
    01-13-2020
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    10

    vba code to generate 60 rows of months

    Hi

    If I have a contract term of 5 years, ie 60 months, how do I create a vba code which would generate 60 rows using formula and indicating the respective months and have it formatted in (Mmm-YY)? I could use eomonth formula but it would be tedious and manual

    For example:
    Contract Term = 60 months (Cell 1)
    Billing date = Oct21 (Cell 2)
    Billing Months = Nov21 - Oct26 (Cell 3 - Cell 61)

    Thanks in advance! Sorry, am not sure why I am not able to upload an excel attachment

    [ATTACH]753115
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: vba code to generate 60 rows of months

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 10-26-2021 at 11:39 AM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,382

    Re: vba code to generate 60 rows of months

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    01-13-2020
    Location
    Singapore
    MS-Off Ver
    2016
    Posts
    10

    Re: vba code to generate 60 rows of months

    thanks for the assist mehmetcik!

+ 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. [SOLVED] Filter months & generate new tabs from results
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-11-2020, 12:23 AM
  2. [SOLVED] Generate Months and Year Table based on Cell Drop down data
    By mchilapur in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2020, 03:01 PM
  3. [SOLVED] Help needed to generate & sort 2 lists of dates into months
    By Funkemduck in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-28-2019, 01:21 PM
  4. [SOLVED] Automatically Generate a number of months between two dates
    By TamHam in forum Excel General
    Replies: 5
    Last Post: 11-15-2017, 04:36 AM
  5. Looking for code to Generate Packing Slips based on row content
    By curtiswheat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2016, 03:27 PM
  6. Replies: 1
    Last Post: 02-16-2016, 07:51 PM
  7. [SOLVED] HOW TO i HAVE OTHER CELLS GENERATE CONSECTUIVE MONTHS
    By Cathy in Florida in forum Excel General
    Replies: 1
    Last Post: 07-15-2006, 10:17 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