+ Reply to Thread
Results 1 to 2 of 2

Macro to increase formulas from the previous month's workbooks into next month's workbook

  1. #1
    Registered User
    Join Date
    06-23-2015
    Location
    Savannah
    MS-Off Ver
    2010
    Posts
    1

    Macro to increase formulas from the previous month's workbooks into next month's workbook

    Hi,

    I have to create a workbook for every month in the year, within each workbook there is 13 tabs. I have to have each month build on the previous month but if I copy and paste the formula from the previous month I still have to edit the formula for the correct previous month. I.e. if i am working in the month of May and copy April's formulas, I still have to go in and edit each formula to change from March to April. Is there a macro that I can use that automatically update the formulas?

    Thanks!
    Last edited by Jeffroth; 07-06-2015 at 04:29 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Macro to increase formulas from the previous month's workbooks into next month's workb

    You could use Excel's Replace function (Ctrl + H)

    • Select all the pasted cells with "March" formulas
    • Ctrl+H to open the Replace dialog
      • Replace what: March
      • Replace with: April
      • Look In: Formulas
      • Click Replace All
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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. Month over Month formula to show increase or decrease in rankings for SEO
    By lindsbay in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 03:03 AM
  2. Macro using vlookups comparing 2 months paysheet(previous month and current month)
    By srinivasan1965 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-07-2012, 03:45 AM
  3. Replies: 5
    Last Post: 10-04-2012, 07:06 AM
  4. [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
  5. Replies: 4
    Last Post: 03-19-2012, 08:58 AM

Tags for this Thread

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