bengalliboy
MIS
Hi,
Finally I got a way to create a shell and wait till it finish it's work. This call a windows program. My problem is, while this Shell is runing I don't want it to appear on my screen... another word I want to hide. This is my code:
Function ShellAndWait(FileName As String, y As String)
Dim objScript, Progress
On Error GoTo ERR_OpenForEdit
Set objScript = CreateObject("Wscript.shell"
shellapp = objScript.Run(FileName, 1, True)
ShellAndWait = True
EXIT_OpenForEdit:
Exit Function
ERR_OpenForEdit:
MsgBox Err.Description
GoTo EXIT_OpenForEdit
End Function
I know there is property like vbHide but it does not accept ..? What am I doing wrong?
Finally I got a way to create a shell and wait till it finish it's work. This call a windows program. My problem is, while this Shell is runing I don't want it to appear on my screen... another word I want to hide. This is my code:
Function ShellAndWait(FileName As String, y As String)
Dim objScript, Progress
On Error GoTo ERR_OpenForEdit
Set objScript = CreateObject("Wscript.shell"
shellapp = objScript.Run(FileName, 1, True)
ShellAndWait = True
EXIT_OpenForEdit:
Exit Function
ERR_OpenForEdit:
MsgBox Err.Description
GoTo EXIT_OpenForEdit
End Function
I know there is property like vbHide but it does not accept ..? What am I doing wrong?