![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Location: Kansas City, MO
Posts: 14
|
How would you creat a slight few second delay, say 1 second, before the code to unload a userform?
(basically stayin on the same userform without having to switch between two identical forms, each unloading the other after input) Thanks for any help. |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Try this line where appropriate:
Application.Wait Now + #12:00:01# Or Application.Wait Now + TimeValue(0,0,1) Tom |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
|
Something like this:
HTH |
|
|
|
|
|
#4 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
If you want to state the delay in ()'s you'll need the serial:
Or by a standard time value:
Hope this helps. |
|
|
|
|
|
#5 |
|
Legend
Join Date: Feb 2002
Location: Minneapolis, Mn, USA
Posts: 9,704
|
I thought you would've been on the 19th hole Mr. O'Brien!
_________________ Cheers, NateO ![]() [ This Message was edited by: nateo on 2002-05-14 18:46 ] |
|
|
|
|
|
#6 |
|
New Member
Join Date: Sep 2009
Posts: 1
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|