Update (see first post) and try this: #include "OOoCalc.au3" #include <Date.au3> #include <WindowsConstants.au3> #include <GUIConstantsEx.au3> _OOoCalc_ComErrorHandler_UserFunction(_ErrFunc) $Form1_1 = GUICreate("Notary Client Verification Form", 667, 273, 192, 132) $Date1 = GUICtrlCreateDate(_DateToDayValue, 72, 40, 257, 25, $WS_TABSTOP) $Button1 = GUICtrlCreateButton("OK", 8, 206, 649, 57) GUISetState(@SW_SHOW)