Hi
Better use the beforeclose event so the user can cancel the close
Copy this in the thisworkbook module
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim ans As Long
ans = MsgBox("Do you fill in your working hours?", vbOKCancel)
If ans = vbOK Then
'do nothing
ElseIf ans = vbCancel Then
Cancel = True
End If
End Sub
--
Regards Ron de Bruin
http://www.rondebruin.nl
"toontje" <abreijer1@zonnet.nl> wrote in message news:36255$42efdbfb$3e3ba125$15720@news.versatel.nl...
>I am looking for a macro that opens a msgbox when exit the workbook to remind you
> like "you fill in your working hours?"
>
> is that Private Sub AutoClose() ?
>
> and where do i put it?
Bookmarks