+ Reply to Thread
Results 1 to 3 of 3

Update Previous month date using VBA

  1. #1
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    365 (2202)
    Posts
    226

    Update Previous month date using VBA

    Hello,

    I'm using below code - where it filters previous month, copies the previous months data at end of the row. Than the newly copied (previous month date) is updated to current month.

    Please Login or Register  to view this content.
    In column E i.e. Date 1 Column - I'd 10 records of Jun 2023. After running the code. June 2023 data is copied and updated as Jul 2023 (from row 36 in attached)

    Now I have a requirement - once we have the current month updated in Date 1 column, in Date 2 column we should get the next month i.e. Aug 2023.

    Highlighted in yellow in attached.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Cool Hello, try this !


    According to your attachment my previous VBA demonstration updated :
    Please Login or Register  to view this content.
    ► Do you like it ? ► So thanks to click on bottom left star icon « Add Reputation » !
    Last edited by Marc L; 07-18-2023 at 01:04 PM.

  3. #3
    Forum Contributor
    Join Date
    02-04-2015
    Location
    India
    MS-Off Ver
    365 (2202)
    Posts
    226

    Re: Hello, try this !

    Hi Marc,

    Thank you! This did the trick.

    Really appreciate your support.

+ 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] previous month last existing date based on latest date
    By rachelwahid in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-03-2021, 02:42 AM
  2. [SOLVED] combining date(month) with values from previous month
    By akalen in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-02-2017, 02:53 PM
  3. SQL: First and Last Date of Previous Month
    By manali7120 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 07-30-2013, 02:54 PM
  4. Replies: 5
    Last Post: 10-04-2012, 07:06 AM
  5. [SOLVED] VBA to identify the current month and previous month based on system date
    By ravikumar00008 in forum Excel General
    Replies: 10
    Last Post: 07-26-2012, 10:04 AM
  6. Display end of month date for previous month
    By erikwvb in forum Excel General
    Replies: 3
    Last Post: 06-20-2011, 01:22 PM
  7. [SOLVED] automatically update chart plotting current month and previous 6
    By Jane in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-01-2005, 06:05 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