+ Reply to Thread
Results 1 to 6 of 6

Have cell automatically add the current date and time and fill color when you click on it.

  1. #1
    Registered User
    Join Date
    04-04-2016
    Location
    Washington
    MS-Off Ver
    2013
    Posts
    3

    Exclamation Have cell automatically add the current date and time and fill color when you click on it.

    I have a scheduling tool for assembly workers that I made in Excel 2013. I need the operators to be able to click on the designated cell (when they are done with the Sub assembly) and the cell will then automatically insert the current date and time and also allow the operator to enter their name all in the same cell. I have entered the data manually in the cells to show as an example of what it supposed to look like in the attached file below. Please help.
    Book1.xlsx
    Last edited by resu1221978; 04-04-2016 at 08:44 PM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Have cell automatically add the current date and time and fill color when you click on

    right click on your sheet tag and select "display code"
    insert such code:
    Please Login or Register  to view this content.
    and you will be pretty close to your target.
    Attached Files Attached Files
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    04-04-2016
    Location
    Washington
    MS-Off Ver
    2013
    Posts
    3

    Re: Have cell automatically add the current date and time and fill color when you click on

    Thank you very much Kaper. How do I do this for the other rows? I tried to add them, but got this run time error. Run-time error '6': Overflow. Will you please help? Thanks.Run-time error.PNG

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Have cell automatically add the current date and time and fill color when you click on

    I do not think you can address several rows like that here. May be try:
    Please Login or Register  to view this content.
    BTW - how about 7?

    if all odd between 3 and 31 you may try

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-04-2016
    Location
    Washington
    MS-Off Ver
    2013
    Posts
    3

    Re: Have cell automatically add the current date and time and fill color when you click on

    I figured it out.
    Please Login or Register  to view this content.
    Last edited by resu1221978; 04-08-2016 at 08:23 PM. Reason: Adding code tags.

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,650

    Re: Have cell automatically add the current date and time and fill color when you click on

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

    And please do observe forum Rules. So please edit your post and apply code tags as required by rule 3
    http://www.excelforum.com/forum-rule...rum-rules.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Click oval option button to fill/unfill color, also change border color to match fill
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2015, 08:29 PM
  2. [SOLVED] Change a columns fill or border color based on current date
    By rcarlson67 in forum Excel General
    Replies: 2
    Last Post: 08-21-2014, 09:53 AM
  3. [SOLVED] Double click to fill cell with date&time and a cell before with applicationuser name
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-02-2014, 01:14 PM
  4. auto fill-in current date/time and duration
    By aturetsky in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-11-2013, 02:19 PM
  5. Replies: 3
    Last Post: 07-08-2010, 06:48 PM
  6. I want to click a Cell and have the current time (HH:MM:SS) appear.
    By Corey R. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2009, 06:08 PM
  7. Replies: 7
    Last Post: 10-19-2005, 11:05 AM

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