+ Reply to Thread
Results 1 to 2 of 2

Creating & Using a global variable referenced by many worksheets within a workbook

  1. #1
    Registered User
    Join Date
    11-02-2009
    Location
    New York, USA
    MS-Off Ver
    Excel 2000
    Posts
    1

    Creating & Using a global variable referenced by many worksheets within a workbook

    Forum Members,

    1 - I am not a programmer.

    2 - I have a Microsoft Excel 2000 workbook with 30 worksheets within it. In location "A8" in each worksheet I manually type the last day of the month. For example: "October 31, 2009".

    3 - Is there a way to place a variable in location "A8" in each worksheet so that I need only manually type "October 31, 2009" only once in the workbook? If there is a simply way; please be specific and detailed in your solution.

    4 - When I need to work on the next month's activity; "November 30, 2009", I will make a copy of the previous month's workbook and change the text from "October 31, 2009" to "November 30, 2009".

    5 - Thank you for your attention to this request.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Creating & Using a global variable referenced by many worksheets within a workboo

    There are likely other, perhaps better solutions, but here is one approach.

    Use a cell on a sheet to hold the month value (e.g. 1,2,3 . . .11,12)
    In my example I use cell A1 on Sheet1.

    Create a Named Formula:
    Name: Current_Month (or whatever you like)
    Formula: =EOMONTH(DATE(YEAR(TODAY()),Sheet1!A1,1),0)

    Then in A8 reference the named formula: =Current_Month

    If you Group Select all sheets and select cell A8 you can globally change the current value to use the formula above by typing =Current_Month into cell A8. Then in future workbooks, just change the month value in Sheet1!A1 to update the end of month date for all sheets at once.
    Attached Files Attached Files
    Last edited by Palmetto; 11-02-2009 at 07:27 PM.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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