G
gils usenet acct
Hi All
What is the best way to put an automatic closing timer on a userForm? In
this case, the userform is in the docment rather than in an attached
template.
sub autopen()
Application.OnTime When:=Now + TimeValue("00:00:30"), _
Name:="TestClose"
userForm333.Show
End Sub
' The above starts a 30 second timer upon opening a file, then shows
userForm333, then after 30 seconds tries to run the "TestClose" code below
Sub testClose()
ActiveDocument.Save
ActiveDocument.Close
End Sub
Word2003, Windows XP
But, while the userForm is open, the close document will not run. How best
to remedy?
TIA
Gil
Gil Carter, MD, JD, FP, medical programming
http://www.TenSecondMedicalRecord.com, in use since 1990, free since 1997
http://www.KeyChainEMR.com Walk up to the medical ward computer, plug in,
do what you need, unplug and walk away.
What is the best way to put an automatic closing timer on a userForm? In
this case, the userform is in the docment rather than in an attached
template.
sub autopen()
Application.OnTime When:=Now + TimeValue("00:00:30"), _
Name:="TestClose"
userForm333.Show
End Sub
' The above starts a 30 second timer upon opening a file, then shows
userForm333, then after 30 seconds tries to run the "TestClose" code below
Sub testClose()
ActiveDocument.Save
ActiveDocument.Close
End Sub
Word2003, Windows XP
But, while the userForm is open, the close document will not run. How best
to remedy?
TIA
Gil
Gil Carter, MD, JD, FP, medical programming
http://www.TenSecondMedicalRecord.com, in use since 1990, free since 1997
http://www.KeyChainEMR.com Walk up to the medical ward computer, plug in,
do what you need, unplug and walk away.