Hi Anthony,
If you want this functionality in a textbox, add the following code to the textbox keypress event:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF nkeycode = 100
this.Value = DATE()
nodefault
endif
>Has anyone figured out if you can insert commands within macros?
>
>For instance I want to assign a macro key that inserts the current DATE().
kenweber
GCom2 Solutions
Microsoft Certified Professional