+ Reply to Thread
Results 1 to 9 of 9

Static time that is automatically inserted

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Oregon, usa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Static time that is automatically inserted

    I am trying to do an activity log book where the time is automatically inserted into a cell in column A, that remains static, whenever anything is typed into the corresponding cell in column b.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Static time that is automatically inserted

    Try:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    Oregon, usa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Static time that is automatically inserted

    Thanks for the reply. I must not be understanding this whole thing. I tried to copy and paste what you supplied, stnkynts, but it didn't seem to do anything. Just to let you know, I have never done anything in VB nor any macros. I am trying to learn. Any ideas?

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Static time that is automatically inserted

    There is a feature of excel called the visual basic editor. You need to paste this code there, in the specific sheet which you will be doing the work on. In addition, you will need to make sure that your workbook is macro enabled.

  5. #5
    Registered User
    Join Date
    04-16-2013
    Location
    Oregon, usa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Static time that is automatically inserted

    OK. If I understand it I right click on the sheet and choose view code, then paste the code you provided in there. Then I save, go to sheet and it should work.


    It doesn't. What am I doing wrong?


    I up loaded a macro enabled if that can help.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Static time that is automatically inserted

    Well now we are at a conundrum. I opened your attached workbook. Typed something into column B, and column A automatically populated with the time. In other words, works fine for me. Maybe another member around here can try it to confirm that it does or does not work for them.

    Only other thing I can think of is that you may have macros disabled in the trust center settings.

  7. #7
    Registered User
    Join Date
    04-16-2013
    Location
    Oregon, usa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Static time that is automatically inserted

    Yes, it does because I have the formula of, =IF(ISTEXT($B10),NOW()) in the cells in column a. Which does put the time of the entry in the way I want it, BUT each time I make a new entry on another row or close and reopen the workbook, the sheet recalculates and puts the, "then current" time in. I need the time to not change. I realize that I could use the shortcut of, Control, Shift, Colon, but I want the time to insert automatically then stay static, not change from the original time. That is, IF, that can be done.
    Last edited by rod50; 04-18-2013 at 01:14 PM.

  8. #8
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Static time that is automatically inserted

    There must be some sort of disconnect here. Regardless of your formula, when you make a change in column B a static time is placed in column A of that same row. If you want a static time entered in a different row, like the rows which already have a formula in it, whenever you make a change in column B that is easy but I would need to know exactly which cells you want the static time in.

    Example of what I see:

    At 15:22 I typed test into cell B7. Cell A7 automatically reported 15:22:37
    At 15:23 I typed test2 into cell B8. Cell A8 automatically reported 15:23:12. Cell A7 still had a value of 15:22:37
    At 15:24 I typed test3 into cell B9. Cell A9 automatically reported 15:24:25. Cell A8 and A7 were still unchanged.
    Last edited by stnkynts; 04-18-2013 at 06:32 PM.

  9. #9
    Registered User
    Join Date
    04-16-2013
    Location
    Oregon, usa
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Static time that is automatically inserted

    Sorry, stnkynts, I went back and reopened my test bookmacro worksheet. I started checking and noticed a warning that macros were not enabled, I enabled and walah!!! it works, perfectly. Thank you. Now I will have to come up with something else, hope I can remember this for the future. Again, thanks, stnkynts!! and sorry for the confusion, like I said in my intro, I'm learning and from scratch.

+ 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