Results 1 to 3 of 3

Thread: Macro to change month and year on all sheet

  1. #1
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    13

    Macro to change month and year on all sheet

    I have a formulas that links to a particular sheet see eg =IF('Jul-2013'!G100>0,('Jul-2013'!G100),"")

    I would like a macro that will enable me to replace the month and year and all sheets with the name ending in JNL

    I have attached a sample workbook. For the sample I only have one sheet with the name ending in JNL, but in practice I will have several sheets with the name ending in JNL

    Your assistance in this regard is most appreciated
    Attached Files Attached Files
    Last edited by Howardc; 08-15-2013 at 09:21 AM. Reason: Attaching sample workbook

  2. #2
    Junior Member
    Join Date
    Aug 2013
    Posts
    9
    Rep Power
    0
    Have you thought about using the INDIRECT formula?

    For example, instead of your formula:

    ='Mar-2013'!C42

    You could use:

    =INDIRECT("'" & A7 & "'!C42")

    Where the value of A7 would be "Mar-2013".

    It really depends on the usage.

    Dex

  3. #3
    Senior Member
    Join Date
    Apr 2012
    Posts
    193
    Rep Power
    13
    Hi Dex

    Thanks for the help, much appreciated. It makes sense to use this formula

    Regards

    Howard

Similar Threads

  1. Replies: 30
    Last Post: 07-19-2013, 07:52 AM
  2. Replies: 10
    Last Post: 06-20-2013, 12:21 AM
  3. Replies: 6
    Last Post: 05-20-2013, 10:06 PM
  4. Change Display Range Based On Change of Dropdown Values
    By rich_cirillo in forum Excel Help
    Replies: 2
    Last Post: 03-29-2013, 04:58 AM
  5. Replies: 3
    Last Post: 03-05-2013, 03:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •