Syntax
Shell(pathname[,windowstyle])
pathname
Required; Variant (String). Name of the program to execute and any required arguments or command-line switches; may include directory or folder and drive.
The windowstyle named argument has these values:
| 
Constant | 
Value | 
Description | 
| 
vbHide | 
0 | 
Window
  is hidden and focus is passed to the hidden window. The vbHide
  constant is not applicable on Macintosh platforms. | 
| 
vbNormalFocus | 
1 | 
Window
  has focus and is restored to its original size and position. | 
| 
vbMinimizedFocus | 
2 | 
Window
  is displayed as an icon with focus. | 
| 
vbMaximizedFocus | 
3 | 
Window
  is maximized with focus. | 
| 
vbNormalNoFocus | 
4 | 
Window
  is restored to its most recent size and position. The currently active window
  remains active. | 
| 
vbMinimizedNoFocus | 
6 | 
Window
  is displayed as an icon. The currently active window remains active. | 
Application.Wait (Now + TimeValue("0:00:01")) 'wait 1 seconds
 
No comments:
Post a Comment