Hello JudyK,
This macro (UDF) may help you. This will return the offset from local time to GMT correctly. It automatically checks the system to see if daylight savings time is active or not. Copy the code below into a VBA module in your workbook's VBA project.
Macro Test Code
Adding the Macro- Copy the macro above pressing the keys CTRL+C
- Open your workbook
- Press the keys ALT+F11 to open the Visual Basic Editor
- Press the keys ALT+I to activate the Insert menu
- Press M to insert a Standard Module
- Paste the code by pressing the keys CTRL+V
- Make any custom changes to the macro if needed at this time.
- Save the Macro by pressing the keys CTRL+S
- Press the keys ALT+Q to exit the Editor, and return to Excel.
Bookmarks