I have a workbook in excel 2013 that I use to make a log of my duties each day.
At the moment to automate the form a bit, I am using some strings for some of the cells that I was able to figure out from online forums.
I would like the form to be a bit more automated and read online that macros can achieve this.
I have the workbook attached (OPLOG.xlsm) and would be grateful if someone can create a macro for me which will achieve what I want it to do.
1. The worksheet cannot be changed in any way and must remain the same with the layout, so adding more columns or moving things around is NOT an option.
2. I would like all strings I have already in certain cells to be controlled by the macro (I will list what I want below). That way there will be no accidental deletion if I accidentally delete the code from the cell. So once the macro works there would be no need to have the strings in the cells anymore.
3. I am not interested at this time of any suggestions or other applications that will accomplish this etc, I would just like to make this form work in the way I have listed below using a macro behind the scenes for it.
4. All highlights, illustrations and red writing in the screenshots below are just there to give a clearer picture of what I want the macro to accomplish.
My requests for the Macro:
1. Upon launch of workbook I would like the processing date to automatically set to today’s date, this cell is currently using the string =CONCATENATE("Processing date: ",TEXT(TODAY(),"mm/dd/yyyy")) but I would like to have the Macro do this instead.
2. I would like for when I double click in cell A10 that the macro will automatically populate:
a. B10, B12 and B13 with an X. Currently I am using this string =IFERROR(IF(SEARCH("*x*",B10,1),"x"),"") in cell B12 and B13 but would like the macro to do this instead.
b. Display the operator name (SDiallo) in cell C16. Currently I am using this string =IFERROR(IF(SEARCH("*x*",B10,1),"SDiallo"),"") in cell C16 but would like the macro to do this instead.
c. Set cell C11 to read Start Time: CurrentSystemTime (hh:mm AM/PM) Example: 10:00 AM. I currently have to put the time in manually, but would like the macro to do this instead.
d. Set cell C14 to read End Time: 8 minutes later (hh:mm AM/PM) Example: 10:08 AM. I currently have to put the time in manually, but would like the macro to do this instead.
3. Same as above but for cell A20 and the specific cells below for that section. See screenshot below on the amount of minutes for the time difference.
4. Same as above but for cell A30 and the specific cells below for that section. See screenshot below on the amount of minutes for the time difference.
5. I would like for when the workbook is first opened to clear the below cells:
a. B10, B12, B13, B16, B20, B22, B23, B26, B30, B32, B33, B36 (so the X and the operators name in these boxes will be removed if they exist in these boxes when the workbook is first opened).
b. B11, B14, B21, B24, B31, B34 (for these cells I want the times cleared and just a default value of Start Time: and End Time: to be displayed when the workbook is first opened).
Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.