Closed Thread
Results 1 to 3 of 3

Is there anything as Static Data

  1. #1
    all4excel
    Guest

    Exclamation Is there anything as Static Data

    In excel whatever stored in the cell is stored at that instant and we can work only on that data,what if we want something like a date or any data using the functions --now() or today() but to have the date of the first time and not change everyday...

    i really dny have an example rite now but there r so many progrmng scenarios when we come across this situation...

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    There is no such thing as a static answer for a formula.

    If a cell has a formula it is subject to change evertime Excel recalulates.

    You can use macros to input a date in a specific cell when another cell or range of cells is changed or when a sheet is activated.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    all4excel
    Guest

    Question Iam sorry but i dnt knw to use VBA at all

    I am vry good in excel programming and have not used MAcros,Pivot Tables i want to start using them but dont know how to start...do u have any small examples to help me...

    Hope not asking too much..
    Thanx

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    This macro - when installed correctly will run everytime a change is made to a cell within the sheet -suggest you test in a new workbook

    If the change is made to cells a1, a2 or e3 it will insert the now() value into the next cell to the right (b1, b2, b3)



    'These instructions pre typed & are worded to cater for the novice programmer
    'To install macro to correct location

    'Copy this macro
    'GoTo Excel
    'Select sheet this is to appy to
    'Right Click on Sheet Name Tab > select View Code
    'Past macro into the Worksheet Module displayed

    Please Login or Register  to view this content.
    Now make changes to cells on the sheet

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Here's a User Defined Function that adds a Static Date

    http://www.excel-it.com/Forum/viewtopic.php?t=387
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

Closed 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