Dec 28 2020 01:24 PM
I am preparing a project log using excel and the now function. My problem is auto-updating of the worksheet results in time difference =0? How to do it? I usually want auto-update. I am not sure how to change this option? Can you help? Thank you.
Sincerely,
MM
Dec 28 2020 01:34 PM
Dec 28 2020 02:24 PM
When I use the shortcut you described the insert menu opens and the two cells to the right have the current time inserted? This is unreal! MM
Dec 28 2020 02:28 PM
Dec 28 2020 02:29 PM
SolutionDec 28 2020 02:36 PM
Dec 28 2020 02:39 PM
Dec 28 2020 02:55 PM
Dec 28 2020 03:04 PM
All cells are working properly now. Thank you for your help.
I wonder if this could be done without shortcut keys but rather with excel commands of some kind? That is what I was attempting to do.
MM
Dec 28 2020 03:06 PM
Dec 28 2020 03:28 PM
Dec 28 2020 03:57 PM
Dec 28 2020 04:21 PM
You are helping me learn what I need to know. How do I make a button witch calls a macro? I see your code.... MM
Dec 28 2020 06:32 PM
Open the vba editor (Alt F11). Select your file in the project explorer (Ctrl R if the project explorer window is not open.
Then, click Insert, Module. Double click the newly added module and it should open a code window. Then, copy/paste the macro into the code module.
Close the vba editor. From the Excel ribbon, click developer tab (File/Options/Customize Ribbon and check developer in the main tabs listbox if you don't see the developer tab). Click Insert, Button (form control). Draw the button on your worksheet and a window should open to select a macro to assign to the button - pick the gettime macro.
Dec 28 2020 06:35 PM
Dec 30 2020 07:38 AM
Dec 30 2020 11:33 AM
This should do it:
Sub GetTime()
ActiveCell.Value = Time
ActiveCell.NumberFormat = "hh:mm:ss"
End Sub
Dec 28 2020 02:29 PM
Solution