+ Reply to Thread
Results 1 to 5 of 5

Changing a cell value when Save

  1. #1
    Registered User
    Join Date
    01-04-2006
    Posts
    70

    Changing a cell value when Save

    Hi,

    Is it possible to change a cell value when the workbook is saved?

    I have a 'last updated' cell with a date in it (H24) and when the user hits either save or save as (be nice if it worked for both)
    I'd like this date to change to today's date.

    Possible?

    Gavin
    Last edited by Gavin Ling; 02-06-2012 at 10:33 AM.

  2. #2
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Changing a cell value when Save

    hi,
    you can find a lot of examples here...but just try it and see if it helps you!

    Please Login or Register  to view this content.
    and

    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Changing a cell value when Save

    John, the workbook macro... you'll need to specify which worksheet gets that change on cell H24, too.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    01-04-2006
    Posts
    70

    Re: Changing a cell value when Save

    OK so I'm a bit of a newbee...

    I put this in the 'This Workbook':

    Please Login or Register  to view this content.
    ..and it seems to work fine :-) Thanks

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Changing a cell value when Save

    hi JBeaucaire,
    Thank you, yes, you're right!

+ 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