Hello I am currently using a macro that is leveraged in both London and NY. There is a section in the macro that timestamps the action using =now
this is creating a unique situation where actions we perform in NY look like they occurred before actions performed in London.
My question is are you able to convert =now
to EST, as to create a uniform timestamp throughout the project?
for reference the line of actual code looks like this
mws.Range(Cells(Lastmwsr + 1, 2), Cells(Lastmwsr + 1, 2)).Value = Now
EDIT: Solutions that include adding +5 to the hour, still need to define how to recognize the time zone to call the argument as this has to be used in multiple regions.
Thanks,
http://www.cpearson.com/excel/TimeZoneAndDaylightTime.aspx
I think there's an error in the late Chips code - his
ConvertLocalToGMT
andGetLocalTimeFromGMT
uses a variable calledStartTime
- I think in both cases this should be the variable that is being passed to the function.To use his code you'd write something like:
or
I've included the code from his site below. Just copy and paste into a new module.
This is a way to display the value of Now adding 5 hours to it. You may consider a function as well.