Below code may help u........
*Sub um()*
*If Application.Wait(Now + TimeValue("0:00:10")) Then*
* MsgBox "Time expired" ' or write "Unload Me" here*
*End If*
*End Sub*
Thanks & Regards,
Harmeet Singh
Sent via BlackBerry Wireless
On Fri, Sep 11, 2009 at 10:23 AM, suresh k <[email protected]> wrote:
> Hi,
>
> I have created Userform which will open when the excel sheet opens, but how
> to keep it only for 10 secs.
> After 10 seconds it should close automatically.
>
> Any macro code for that??
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
To post to this group, send email to [email protected]
If you find any spam message in the group, please send an email to:
Ayush Jain @ [email protected] or
Ashish Jain @ [email protected]
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!
We reach over 6,500 subscribers worldwide and receive many nice notes about the
learning and support from the group. Our goal is to have 10,000 subscribers by
the end of 2009. Let friends and co-workers know they can subscribe to group at
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---