+ Reply to Thread
Results 1 to 7 of 7

Storing information into adjacent cell when an update is made

  1. #1
    Registered User
    Join Date
    01-28-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    13

    Storing information into adjacent cell when an update is made

    ]I am trying to store data that has been previously computed in Column C to Column D when C is updated:

    eg

    Column C....
    1/25/2011

    Column C is then changed: and Column D will store:
    1/27/2011 1/25/2011

    thank you for your help I have tried using this which I found on this forum but it gives me the date in another column and I cannot get rid of it without making the code unfunctional. I am new to VB so any help would be appreciated.


    Please Login or Register  to view this content.
    Last edited by ZMBER; 01-28-2011 at 05:08 PM.

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

    Re: Storing information into adjacent cell when an update is made

    By "updated" I assume you mean someone is physically changing the date in column C, and you want the old date that was there to appear next to it in column D. If correct, then:

    Please Login or Register  to view this content.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    01-28-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Storing information into adjacent cell when an update is made

    Thank you the only issue I am having now is that if the value is updated to the same date it is not being captured in column D.

    Other than that thank you JBeaucaire you solved my problem

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

    Re: Storing information into adjacent cell when an update is made

    I specifically added a test to NOT put the same date in twice, that seems redundantly redundant.

    5 Points if you can look a the code and spot the part that compares the old value to the new value... find that and take it out and you get 10 points.

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

    Re: Storing information into adjacent cell when an update is made

    Did you figure it out?

  6. #6
    Registered User
    Join Date
    01-28-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Storing information into adjacent cell when an update is made

    JBeaucaire,

    For some reason it stooped working. I found the redundancy, but now the date I get in D is 1/0/1900 regardless of what is in C. I should probably clarify C isn't manually entered i have another VB that automates the date

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

    Re: Storing information into adjacent cell when an update is made

    Macros interact strangely and must be specifically managed. I can't comment on how this would react to anything other than a human entering a value.

+ 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